Created
February 9, 2015 14:51
-
-
Save fgarcia/0d115f9fbe002b5d6922 to your computer and use it in GitHub Desktop.
Play with include vs exclude
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 Temp | |
def say | |
p "hi Parent" | |
end | |
end | |
class Swap | |
include Temp | |
def say | |
super | |
p "hi Child" | |
end | |
end | |
n = Swap.new | |
#n.extend Temp | |
n.say | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment