From: Jason Persampieri Date: 2006-04-30T03:04:24+09:00 Subject: Re: HTTP:Post and Ruby 1.8.2 ------=_Part_14497_32160477.1146333861836 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > 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/ > > I was considering that, but it seemed like it would be more consistent t= o just verify that it runs on each version. Also, it lets me have a nice clean chunk at the top of the code with a RUBY_VERSION check that extends the classes if necessary. ------=_Part_14497_32160477.1146333861836--