summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/yaml.rb3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a2cb383f3..d8a3987c60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jan 8 04:38:47 2005 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml.rb: Kernel#y requires an argument.
+
Fri Jan 7 21:12:29 2005 TAMURA Takashi <sheepman@tcn.zaq.ne.jp>
* random.c (rand_init): use ALLOC_N instead of ALLOCA_N
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 38463404bd..6837cc239d 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