>> c1 = 'hello'
>> eval c1
NameError: undefined local variable or method `hello' for main:Object

>> c2 = 'hello #{hi}'
=> "hello \#{hi}"
>> eval c2
NameError: undefined local variable or method `hello' for main:Object

>> c3 = '#{hi} hello'
=> "\#{hi} hello"
>> eval c3
=> nil


My question is why the eval of c3 is returning nil. It should fail
saying that undefined local variable just as it did in the case of c2 ?
-- 
Posted via http://www.ruby-forum.com/.