test_yaml.rb:

require 'yaml'
puts( true.to_yaml )

% ruby test_yaml.rb

prints:

/usr/local/lib/ruby/1.8/yaml/types.rb:49: warning: toplevel constant Hash
referenced by Kernel::Hash
-- true

Is this behaviour common? Or I did something wrong. Thanks.