From: Stefan Matthias Aust Date: 2001-05-24T08:11:25+09:00 Subject: [ruby-talk:15634] Re: help attr_reader Mark Slagell wrote: >> def x(x) @x = x end >Well -- I'm sure it was a typo, but the writer would be x=(x), not >x(x). And of course if you wanted to write them out on one line you'd >need semicolons. > > def x=(x); @x=x; end Yes, that was a typo - thanks - and no, you don't need to add semicolons. Ruby is clever enough to know that a new expressions starts behind the parameter () and before end, you never need a semicolon. bye -- Stefan Matthias Aust \/ Truth Until Paradox