ruby-changes:3256
From: ko1@a...
Date: 28 Dec 2007 11:40:12 +0900
Subject: [ruby-changes:3256] usa - Ruby:r14749 (trunk): * golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[]
usa 2007-12-28 11:39:51 +0900 (Fri, 28 Dec 2007)
New Revision: 14749
Modified files:
trunk/ChangeLog
trunk/golf_prelude.rb
Log:
* golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[]
returns an array of lines.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/golf_prelude.rb?r1=14749&r2=14748
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14749&r2=14748
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14748)
+++ ChangeLog (revision 14749)
@@ -1,3 +1,8 @@
+Fri Dec 28 11:39:02 2007 NAKAMURA Usaku <usa@r...>
+
+ * 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@r...>
* golf_prelude.rb (Object.quine): get the script itself.
Index: golf_prelude.rb
===================================================================
--- golf_prelude.rb (revision 14748)
+++ golf_prelude.rb (revision 14749)
@@ -18,7 +18,7 @@
end
def quine(src = $0)
- SCRIPT_LINES__[src]
+ SCRIPT_LINES__[src].join
end
end
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml