Skip to content

Instantly share code, notes, and snippets.

@jirikolarik
Created November 15, 2013 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jirikolarik/7490445 to your computer and use it in GitHub Desktop.
Save jirikolarik/7490445 to your computer and use it in GitHub Desktop.
Monkey Patching
module Missing
def new_method
# Do something
end
def override_method this_should_be_false = false
super
end
end
require_relative 'missing'
module Orignal
prepend Missing
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment