summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-07 19:38:21 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-07 19:38:21 +0000
commitb25428948977c6ef6b9cf203ee5f6e70f111b1cd (patch)
tree1002d08ecb694203fb7057b04f2bbdf7d7804053 /lib
parenta529423c4ee78b731d193215cc55cd6349eb8853 (diff)
downloadruby-b25428948977c6ef6b9cf203ee5f6e70f111b1cd.tar.gz
ruby-b25428948977c6ef6b9cf203ee5f6e70f111b1cd.tar.xz
ruby-b25428948977c6ef6b9cf203ee5f6e70f111b1cd.zip
* lib/yaml.rb: Kernel#y requires an argument.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/yaml.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 38463404b..6837cc239 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -400,7 +400,8 @@ module Kernel
# ryan:: Either way, I certainly will have a pony parade.
#
- def y( *x )
+ def y( o, *x )
+ x.unshift o
puts( if x.length == 1
YAML::dump( *x )
else