Created
April 5, 2011 23:55
-
-
Save anonymous/904846 to your computer and use it in GitHub Desktop.
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 Helper | |
def helper_method | |
puts "I'm helping" | |
end | |
end | |
class Main | |
include Helper | |
def show | |
helper_method | |
end | |
end | |
Main.class_eval do | |
def show_also | |
puts "I'm also showing here" | |
end | |
helper_method | |
end | |
m = Main.new | |
m.show_also |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment