diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-24 16:52:49 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-24 16:52:49 +0000 |
| commit | 6026b2f72f65ce8b74ac203c41fedef1096afbf5 (patch) | |
| tree | 43053770bedbba80864904799289db948b79d1d3 | |
| parent | ef92c01b72a816a6b334f4df09cdf715d3a650c6 (diff) | |
| download | ruby-6026b2f72f65ce8b74ac203c41fedef1096afbf5.tar.gz ruby-6026b2f72f65ce8b74ac203c41fedef1096afbf5.tar.xz ruby-6026b2f72f65ce8b74ac203c41fedef1096afbf5.zip | |
Move "y" documentation to correct place
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | lib/yaml.rb | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb index e89171f20..83ba9cc63 100644 --- a/lib/yaml.rb +++ b/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 |
