o = Object.new def o.x :hello end o.instance_eval { x } #=> :hello x = 100 o.instance_eval { x } #=> 100