From: "J. Cooper" Date: 2008-06-27T12:32:07+09:00 Subject: Re: question about defined? and y Ruby Freak wrote: > Problem is "method" isn't false, so it comes back as non-nil, or true. > > I am running this in Scite with nothing defined for y that I know of. > The whole file is: > > puts defined?(x) # => nil > > puts defined?(y) # => method > > Soo.. I guess y is defined somewhere > and Defined? is pretty much non-dependable. > I was just following a pedantic exercise so I don't really need it, > but the failure made the exercise confusing. > > Thanks. Try calling y() in that file :) -- Posted via http://www.ruby-forum.com/.