From: "jay s." Date: 2011-05-27T01:30:20+09:00 Subject: Re: Method that mutates object Jeremy Bopp wrote in post #1001275: > On 5/26/2011 11:07, jay s. wrote: >> ...set x to 5... >> end >> end >> >> >> now when you call x the value is 5 > > Instances of Integer are immutable, so you can't do that. The > documentation for Fixnum (a descendant of Integer) mentions this in the > Overview section: > > http://rdoc.info/stdlib/core/1.9.2/Fixnum > > -Jeremy Thanks. -- Posted via http://www.ruby-forum.com/.