diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-28 02:39:51 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-28 02:39:51 +0000 |
commit | c3a12f418b60e65076af89c74b0894c53e51c09c (patch) | |
tree | 96a4d423b8127213a55b0dd5d32abbf09c5217a5 | |
parent | 5fcaf1a3e82298a1252c0e06e8b93328e0a9bba3 (diff) | |
download | ruby-c3a12f418b60e65076af89c74b0894c53e51c09c.tar.gz ruby-c3a12f418b60e65076af89c74b0894c53e51c09c.tar.xz ruby-c3a12f418b60e65076af89c74b0894c53e51c09c.zip |
* golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[]
returns an array of lines.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | golf_prelude.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Dec 28 11:39:02 2007 NAKAMURA Usaku <usa@ruby-lang.org> + + * golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[] + returns an array of lines. + Fri Dec 28 11:16:53 2007 NAKAMURA Usaku <usa@ruby-lang.org> * golf_prelude.rb (Object.quine): get the script itself. diff --git a/golf_prelude.rb b/golf_prelude.rb index 18b9f1b8d..03c0c6cce 100644 --- a/golf_prelude.rb +++ b/golf_prelude.rb @@ -18,7 +18,7 @@ class Object end def quine(src = $0) - SCRIPT_LINES__[src] + SCRIPT_LINES__[src].join end end |