зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
ec12be8574
Коммит
18ef0fef15
|
@ -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.
|
||||
|
|
|
@ -18,7 +18,7 @@ class Object
|
|||
end
|
||||
|
||||
def quine(src = $0)
|
||||
SCRIPT_LINES__[src]
|
||||
SCRIPT_LINES__[src].join
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче