SHARE
TWEET

Untitled

a guest Feb 26th, 2012 15 Never
  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
RAW Paste Data
Top