Chris Pine
2003-04-08 20:12:18 UTC
Hello,
Is this how this is supposed to work?
irb(main):001:0> class Foo; end
=> nil
irb(main):002:0> foo = Foo.new
=> #<Foo:0x400d7528>
irb(main):003:0> foo.instance_variable_set :bar, 15
NameError: `bar' is not an instance variable name
from (irb):3:in `instance_variable_set'
from (irb):3
This seems like it ought to work...
Chris
Is this how this is supposed to work?
irb(main):001:0> class Foo; end
=> nil
irb(main):002:0> foo = Foo.new
=> #<Foo:0x400d7528>
irb(main):003:0> foo.instance_variable_set :bar, 15
NameError: `bar' is not an instance variable name
from (irb):3:in `instance_variable_set'
from (irb):3
This seems like it ought to work...
Chris