summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 02:39:51 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-28 02:39:51 (GMT)
commit18ef0fef154fa8dd31f21a7f9693e455c5b2e704 (patch)
tree96a4d423b8127213a55b0dd5d32abbf09c5217a5 /golf_prelude.rb
parentec12be85744493b78b6fc6ca299b10350a2592a1 (diff)
* golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[]
returns an array of lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'golf_prelude.rb')
-rw-r--r--golf_prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/golf_prelude.rb b/golf_prelude.rb
index 18b9f1b..03c0c6c 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