dear list,

just noticed an unexspected behaviour of the OpenStruct class:


 require 'ostruct'
 t = OpenStruct.new()
 t.meth1 = []
 t.send('meth1') << "hi"
 puts t.meth1.inspect

this works, but

 t.send('meth2') = [] # => test.rb:17: syntax error  t.send('meth2') = []
 puts t.meth2.inspect

is  it a bug or am I missing something?

greetings,

benny