Created
February 16, 2009 00:18
-
-
Save banister/64918 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 Horse | |
>> def neigh | |
>> puts "neigh" | |
>> end | |
>> end | |
=> nil | |
>> class Bink | |
>> include Horse | |
>> def neigh | |
>> super | |
>> puts "and another neigh" | |
>> end | |
>> end | |
=> nil | |
>> b = Bink.new | |
=> #<Bink:0xb7b31804> | |
>> b.neigh | |
neigh | |
and another neigh | |
=> nil | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment