Is there any way to do something like this?
a = Struct.new(:c).new(1)
b = Struct.new(:c).new(2)
a.send(:c)
=> 1
b.send(:c)
=> 2
a.send(:c) = b.send(:c)
The last line result in error:
syntax error, unexpected '=', expecting $end
a.send(:c) = b.send(:c)
^