From: "John W. Long" Date: 2006-04-29T22:19:18+09:00 Subject: Re: HTTP:Post and Ruby 1.8.2 Jason Persampieri wrote: > Should I actually check the Ruby version? How would I actually do that? > None of my searches paid off. > > Alternatively, I could catch the 'NoMethod' exception, but that would mean > it could potentially take the 1.8.2 code path if I actually goofed a bit in > my 1.8.4 path. Instead of using the RUBY_VERSION constant, it's probably better to use object.respond_to?(:method_name) to determine which version you are dealing with. -- John Long http://wiseheartdesign.com/