From: Perry Smith Date: 2011-01-06T02:07:25+09:00 Subject: Re: actual class name Thanks. The commented out line works -- I get back an AsyncRequest instance that is able to call perform. The ar = job.ybody does not work. I get back a YAML::Object. (The debug line is hit) # ar = YAML.load(job.body) # The transmitted AsyncRequest ar = job.ybody # The transmitted AsyncRequest if ar.kind_of? YAML::Object Rails.logger.debug("YAML::Object") end Rails.logger.debug("self.perform ar.class = #{ar.class.to_s}") ar.perform I'm interfacing with beanstalk-client and ybody is defined as: def ybody() (@ybody ||= [begin YAML.load(body) rescue nil end])[0] end I'm trying to figure out why my call to load works but the call inside the gem is not working. -- Posted via http://www.ruby-forum.com/.