From: Jim Weirich Date: 2006-03-27T22:52:13+09:00 Subject: Re: Areal noob question 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 def foo(some_object) end Tells you what foo expects as an argument. -- -- Jim Weirich -- Posted via http://www.ruby-forum.com/.