Skip to content

Instantly share code, notes, and snippets.

@mscottford
Created February 23, 2012 15:15
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 mscottford/1893250 to your computer and use it in GitHub Desktop.
Save mscottford/1893250 to your computer and use it in GitHub Desktop.
cloudraker:mcsweeneys mscottford$ irb
1.9.3p0 :001 > a = Object.new
=> #<Object:0x007f7f59c09538>
1.9.3p0 :002 > Object.class_eval { def foo; puts 'wow'; end; }
=> nil
1.9.3p0 :003 > a.foo
wow
=> nil
1.9.3p0 :004 > b = Object.new
=> #<Object:0x007f7f59c19b18>
1.9.3p0 :005 > b.foo
wow
=> nil
1.9.3p0 :006 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment