From: google@... (Tom Payne) Date: 2003-05-14T02:34:57+09:00 Subject: Re: Ruby<->Perl and syck-0.25 problem Brian Candler wrote in message news:<20030513145842.A72368@linnet.org>... > However I've tried installing syck-0.25 and it seems to have some bits > missing: > > irb(main):002:0> require 'yaml' > NameError: undefined method `add_ruby_type' for YAML:Module > from /usr/local/lib/ruby/site_ruby/1.6/yaml/rubytypes.rb:26 > from /usr/local/lib/ruby/site_ruby/1.6/yaml.rb:19:in `require' > from /usr/local/lib/ruby/site_ruby/1.6/yaml.rb:19 > from (irb):2:in `require' > from (irb):2 > > Grepping the source I can see where add_ruby_type and add_builtin_type are > used, but not where they are defined. > > Am I missing some magic source file? You need to: require "syck" not, "yaml". Then change your code: object = YAML.load(whatever) becomes parser = YAML::Syck::Parser.new({}) object = parser.load(whatever) HTH, Tom