summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 02:39:51 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 02:39:51 +0000
commitc3a12f418b60e65076af89c74b0894c53e51c09c (patch)
tree96a4d423b8127213a55b0dd5d32abbf09c5217a5
parent5fcaf1a3e82298a1252c0e06e8b93328e0a9bba3 (diff)
downloadruby-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--ChangeLog5
-rw-r--r--golf_prelude.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ac4e98196..623a4f1a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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