Ruby Manual Kernel-y

Ruby Manual Kernel-y:

"ryan: You know how Kernel.p is a really convenient way to dump ruby structures? The only downside is that it's not as legible as YAML.
_why: (listening)
ryan: I know you don't want to urinate all over your users' namespaces. But, on the other hand, convenience of dumping for debugging is, IMO, a big YAML use case.
_why: Go nuts! Have a pony parade!
ryan: Either way, I certainly will have a pony parade."

I just found this out while browsing the methods in module Kernel in Ruby. In my opinion, this is not even funny. In fact, it is a very inconsiderate thing to do in terms of documentation.


comments powered by Disqus