From: James Edward Gray II Date: 2006-03-27T22:59:37+09:00 Subject: Re: Areal noob question On Mar 27, 2006, at 7:52 AM, Jim Weirich wrote: > David Ishmael wrote: >> I'm still learning Ruby (so don't flame me too hard here), but >> some of >> the >> programming paradigms I've grown accustomed to such as inline scope >> declarations and type hinting are missed (at least by me). >> >> protected foo( SomeObject o ) { ... } >> >> In that one line I can tell you that the method is protected and >> requires >> SomeObject to be passed to it. Versus Ruby's: >> >> protected >> >> def foo( o ) >> ... >> end > > Can't help much with the protected issue, but Sure we can! ;) Use the other protected method declaration syntax: def foo... def bar... protected :foo, :bar Hope that helps. James Edward Gray II