Created
January 14, 2016 20:08
-
-
Save saterus/240ba7ee3b8697e6fbf9 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
[11] pry(main)> module M | |
[11] pry(main)* def foo | |
[11] pry(main)* puts "self: #{self}" | |
[11] pry(main)* end | |
[11] pry(main)* end | |
=> nil | |
[12] pry(main)> class C | |
[12] pry(main)* include M | |
[12] pry(main)* end | |
=> C | |
[13] pry(main)> C.new.foo | |
self: #<C:0x0000000b29e590> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment