Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Object
- def x
- "Object's x"
- end
- end
- def foo
- x = "Hello!"
- Object.new.instance_eval {puts x}
- end
- foo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement