Forum: Ruby Is this a YAML bug?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jim (Guest)
on 2006-01-04 19:12
(Received via mailing list)
The code:

require "http-access2"
require "yaml"

client ="client.yml", "w") do |file|
  file.puts client.to_yaml

client2 = YAML.load( "client.yml" ))

p client2

The error:

/usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer': allocator undefined
for Method (TypeError)
        from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
        from client.rb:11
This topic is locked and can not be replied to.