Skip to content

Instantly share code, notes, and snippets.

@jirikolarik
Created November 15, 2013 19:46
Show Gist options
  • 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