This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.11 KB  |  views: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. o = Object.new
  2. def o.x
  3.   :hello
  4. end
  5.  
  6. o.instance_eval { x } #=> :hello
  7.  
  8. x = 100
  9.  
  10.  
  11. o.instance_eval { x } #=> 100
clone this paste RAW Paste Data