From: Robert Klemme Date: 2003-05-20T02:07:35+09:00 Subject: Re: public/protected/private syntax "Mauricio Fern�ndez" schrieb im Newsbeitrag news:20030519162336.GB9282@student.ei.uni-stuttgart.de... > On Tue, May 20, 2003 at 01:04:36AM +0900, Robert Klemme wrote: > > And even (Java style): > > > > class Foo > > public def meth1 ... > > public def meth2 ... > > private def meth3 ... > > private def meth4 ... > > protected def meth5 ... > > protected def meth6 ... > > end > > > > :-) > > ??? > > >> class Foo > >> private def meth1 > >> end > >> end > SyntaxError: compile error > (irb):3: void value expression > from (irb):4 > > irb's output matches my expectations :) Ooops! Should've checked. I thougtht this was legal. Darn... Sorry for the confusion. robert