Skip to content

Instantly share code, notes, and snippets.

@richo
Created November 22, 2012 07:30
Show Gist options
  • Save richo/4129817 to your computer and use it in GitHub Desktop.
Save richo/4129817 to your computer and use it in GitHub Desktop.
[1] pry(main)> t = Class.new do |klass|
[1] pry(main)* def foo
[1] pry(main)* puts "rawr"
[1] pry(main)* end
[1] pry(main)* end
=> #<Class:0x007fd112992a38>
[2] pry(main)> t.new.foo
rawr
=> nil
[3] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment