mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Move "y" documentation to correct place
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
42ad5216ec
commit
9d84c89464
1 changed files with 16 additions and 15 deletions
31
lib/yaml.rb
31
lib/yaml.rb
|
@ -198,22 +198,23 @@ end
|
|||
require 'yaml/rubytypes'
|
||||
require 'yaml/types'
|
||||
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
module Kernel
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
def y( x )
|
||||
puts x.to_yaml
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue