From: ara.t.howard@... Date: 2006-02-04T03:57:52+09:00 Subject: Re: YAML::quick_emit api change On Sat, 4 Feb 2006, why the lucky stiff wrote: > ara.t.howard@noaa.gov wrote: > >> but is a nil value by default ok? > > >> require 'yaml' > >> hsh = {'to' => 'ara.t.howard@noaa.gov', 'x-mail-count' => 178223, 'from' > => 'why@ruby-lang.org'} > >> hsh.to_yaml_style > => nil > > If you really need to sniff, I'd use YAML::Syck::VERSION. In case you > encounter someone who'se upgraded their extension. > > why@stungun ~ $ ~/sand/RUBY-1_8_4/bin/ruby -v -ryaml -e 'p > YAML::Syck::VERSION' > ruby 1.8.4 (2005-12-24) [i686-linux] > "0.60" > > why@stungun ~ $ ~/sand/RUBY-1_8_3/bin/ruby -v -ryaml -e 'p > YAML::Syck::VERSION' > ruby 1.8.3 (2005-09-21) [i686-linux] > "0.60" > > why@stungun ~ $ ~/sand/RUBY-1_8_2/bin/ruby -v -ryaml -e 'p > YAML::Syck::VERSION' > ruby 1.8.2 (2004-12-25) [i686-linux] > "0.45" > > There shouldn't be any 0.5x Sycks floating around in stable Ruby releases. and where would the to_yaml_style attr come in at - which version is the break point? -a -- happiness is not something ready-made. it comes from your own actions. - h.h. the 14th dali lama