I have this class definition:
class Test attr_accessor :state def multiple_state=(times) @state *= times end end obj = Test.new obj.state = 2 puts #{obj.multiple_state=4} I thought the output is 8, coz that is the value of the last expression evaluated in multiple_state. (?)
But the output is 4.
Is my understanding of last expression evaluated wrong?
Thanks.