From 36fc61901d32a517e38772b48fb186d0e4ab05b8 Mon Sep 17 00:00:00 2001 From: why Date: Fri, 7 Jan 2005 19:38:21 +0000 Subject: * lib/yaml.rb: Kernel#y requires an argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/yaml.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5b0370de1d..53ec9891d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Jan 8 04:38:47 2005 why the lucky stiff + + * lib/yaml.rb: Kernel#y requires an argument. + Fri Jan 7 21:12:29 2005 TAMURA Takashi * random.c (rand_init): use ALLOC_N instead of ALLOCA_N @@ -253,6 +257,7 @@ Fri Dec 24 02:22:53 2004 Nobuyoshi Nakada * ext/syck/rubyext.c (syck_emitter_s_alloc, syck_emitter_initialize): ditto. +>>>>>>> 1.2673.2.773 Fri Dec 24 01:21:00 2004 Hidetoshi NAGAI * ext/tk/lib/tkextlib/blt.rb: add BLT extension support 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 -- cgit v1.2.3