From: Richard Fairbanks Date: 2010-04-05T23:35:16+09:00 Subject: Re: When {integer:0} <> 0 ??? Brian Candler wrote: > Richard Fairbanks wrote: >> if p(Y.z): 0 # I assume this is the culprit! >> osax.say(Y.z) #=> silence >> end > > What are you trying to do here? Thank you for the response, Brian! (Y,z) is initially defined as 0: module Y; def self.z; 0; end; end and both: osax.say(Y.z) #=> "zero" and p(Y.z) #=> {integer:0} validates that Y.z) = 0 What if statement do I have to write to get Ruby to recognize an existing value? Thanks! -- Posted via http://www.ruby-forum.com/.