Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created February 9, 2015 14:51
Show Gist options
  • Save fgarcia/0d115f9fbe002b5d6922 to your computer and use it in GitHub Desktop.
Save fgarcia/0d115f9fbe002b5d6922 to your computer and use it in GitHub Desktop.
Play with include vs exclude
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