Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created May 1, 2009 15:13
Show Gist options
  • Save wjessop/105080 to your computer and use it in GitHub Desktop.
Save wjessop/105080 to your computer and use it in GitHub Desktop.
pleb:~ will$ irb
>> class Foo; end
=> nil
>> Foo.instance_eval { def eeeevil; puts "foo"; end }
=> nil
>> Foo.eeeevil
foo
=> nil
>> Foo.class_eval { def eeeevil; puts "foo"; end }
=> nil
>> f = Foo.new
=> #<Foo:0x11bfc00>
>> f.eeeevil
foo
=> nil
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment