From f413b838141884fef9cff48891b9a494d2d8f3aa Mon Sep 17 00:00:00 2001 From: eban Date: Fri, 28 Dec 2007 11:20:59 +0000 Subject: [PATCH] * golf_prelude.rb (Object.say): derived from Perl 5.10. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ golf_prelude.rb | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1ada769dec..59be6b1ca3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 28 20:18:42 2007 WATANABE Hirofumi + + * golf_prelude.rb (Object.say): derived from Perl 5.10. + Fri Dec 28 19:39:34 2007 NAKAMURA Usaku * encoding.c (rb_locale_encoding): should check return value from diff --git a/golf_prelude.rb b/golf_prelude.rb index 90d3582f05..eea08fef74 100644 --- a/golf_prelude.rb +++ b/golf_prelude.rb @@ -20,6 +20,8 @@ class Object def quine(src = $0) SCRIPT_LINES__[src].join end + + alias say puts end class Integer