Is this a YAML bug?


#1

The code:

require “http-access2”
require “yaml”

client = HTTPClient.new

File.open(“client.yml”, “w”) do |file|
file.puts client.to_yaml
end

client2 = YAML.load( File.read( “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:inload’
from client.rb:11