From: Joel VanderWerf Date: 2004-03-15T04:59:04+09:00 Subject: Re: Kernel#y Robert Klemme wrote: > Hm. Where's the difference between "puts obj.to_yaml" and "y obj" apart from > less typing? Actually, that's pretty much the definition from yaml.rb: module Kernel def y( x ) puts x.to_yaml end end Kernel#y and Object#to_yaml are analogous to Kernel#p and Object#inspect. Both #y and #p are convenient for debugging and irb. And there's also #pp, which is nice to have, too.