Skip to content

Instantly share code, notes, and snippets.

@thomasdziedzic
Created June 1, 2012 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasdziedzic/2855629 to your computer and use it in GitHub Desktop.
Save thomasdziedzic/2855629 to your computer and use it in GitHub Desktop.
[2] pry(main)> class A
[2] pry(main)* class B
[2] pry(main)* def foo
[2] pry(main)* 'foo'
[2] pry(main)* end
[2] pry(main)* end
[2] pry(main)* end
=> nil
[3] pry(main)> b = A::B.new
=> #<A::B:0x000000009bf6b8>
[4] pry(main)> b.foo
=> "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment