From: Jeremy McAnally Date: 2007-01-26T09:07:53+09:00 Subject: Re: Ruby language question That is setting an attribute, which essentially means you can do this: class MyClass include Mod end x = MyClass.new x.size = 9 => 9 x.size => 9 --Jeremy On 1/25/07, Neville Franks wrote: > Hi, I've been working on adding Ruby language support to our IDE "ED for > Windows" the past few weeks and am stuck understanding the marked > statement in this code: > > module Mod > def size > @size > end > def size=(val) # what does this mean > @size = val > end > end > > None of the reference material I've found so far shows this. I saw it in > the documentation for: attr(symbol, writable=false) => nil > > Thanks, > Neville > > -- > Posted via http://www.ruby-forum.com/. > > -- My free Ruby e-book: http://www.humblelittlerubybook.com/book/ My blogs: http://www.mrneighborly.com/ http://www.rubyinpractice.com/