Created
November 15, 2013 19:46
-
-
Save jirikolarik/7490445 to your computer and use it in GitHub Desktop.
Monkey Patching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Missing | |
def new_method | |
# Do something | |
end | |
def override_method this_should_be_false = false | |
super | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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