From: Brian Candler Date: 2010-02-22T06:44:52+09:00 Subject: Re: Ruby conditionals subtlety? defined? does appear to be a rather odd beast though. You'd have to dig hard through the source to explain the following (which I'm not going to try): >> defined?(1) => "expression" >> defined?(1+2) => "method" This is with: >> RUBY_VERSION => "1.8.7" >> RUBY_PATCHLEVEL => 174 -- Posted via http://www.ruby-forum.com/.