From: Ruby Newbee Date: 2009-12-12T16:27:54+09:00 Subject: a question on method name Hello, This works fine for me: class Horse def name @name end def nameset(v1,v2) @name = v1 + v2.to_s end end xx=Horse.new xx.nameset("hello ",1) p xx.name But if I changed the method name, it won't work. class Horse def name @name end def name=(v1,v2) @name = v1 + v2.to_s end end xx=Horse.new xx.name=("hello ",1) p xx.name the error says: syntax error, unexpected ',', expecting ')' xx.name=("hello ",1) ^ Please help, thanks in advance.