Skip to content

Instantly share code, notes, and snippets.

@saterus
Created January 14, 2016 20:08
Show Gist options
  • Save saterus/240ba7ee3b8697e6fbf9 to your computer and use it in GitHub Desktop.
Save saterus/240ba7ee3b8697e6fbf9 to your computer and use it in GitHub Desktop.
[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