On Nov 13, 2007, at 8:40 PM, Phrogz wrote:

> On Nov 13, 1:36 pm, "ara.t.howard" <ara.t.how... / gmail.com> wrote:
>>      def ignoring_added_methods?
>>        defined? @ignoring_added_methods and @ignoring_added_methods
>>      end
>
> What was your motivation for the above code instead of simply
>   def ignoring_added_methods?
>     @ignoring_added_methods
>   end
>
>
>
>

cfp:~ > ruby -d -e '  def foo() defined? @foo and @foo end; foo()  '


cfp:~ > ruby -d -e '  def foo() @foo end; foo()  '
-e:1: warning: instance variable @foo not initialized


been trying to get the habit... it's tough! ;-)

cheers.

a @ http://codeforpeople.com/
--
share your knowledge.  it's a way to achieve immortality.
h.h. the 14th dalai lama