From: James Edward Gray II Date: 2006-10-04T01:43:08+09:00 Subject: Re: Private visibility should be removed from Ruby 2 [was: Caveats with #method_missing] On Oct 3, 2006, at 11:38 AM, Tomasz Wegrzanowski wrote: > On 10/3/06, James Edward Gray II wrote: >> On Oct 3, 2006, at 11:07 AM, Tomasz Wegrzanowski wrote: >> >> a.instance_eval { self.sortable } >> NoMethodError: protected method `sortable' called for #> first="foo", last="bar"> >> from (irb):23 >> from (irb):23 >> from :0 > > So why doesn't a.instance_eval { self.sortable } work ? > I stand by my statement that pretty much nobody understands > "protected". Because that's a method call, not a function-style call. James Edward Gray II