Created
April 17, 2012 23:39
-
-
Save daneharrigan/2409927 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Foo | |
def bar | |
"bar" | |
end | |
module Baz | |
def bar | |
"baz" | |
super | |
end | |
end | |
end | |
class Foo | |
include Baz | |
end | |
puts Foo.new.bar | |
foo = Foo.new | |
foo.extend Foo::Baz | |
puts foo.bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment