Skip to content

Instantly share code, notes, and snippets.

@prdetective
Created October 7, 2013 10:54
Show Gist options
  • Save prdetective/6866001 to your computer and use it in GitHub Desktop.
Save prdetective/6866001 to your computer and use it in GitHub Desktop.
class Original
def self.some_method
# something original...
end
end
module Override
def self.included base
base.instance_eval do
def some_method
# something overridden...
end
end
end
end
Original.send(:include, Override)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment