Skip to content

Commit

Permalink
* golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[]
Browse files Browse the repository at this point in the history
	  returns an array of lines.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Dec 28, 2007
1 parent ec12be8 commit 18ef0fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions 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.
Expand Down
2 changes: 1 addition & 1 deletion golf_prelude.rb
Expand Up @@ -18,7 +18,7 @@ def h(a='H', b='w', c='!')
end

def quine(src = $0)
SCRIPT_LINES__[src]
SCRIPT_LINES__[src].join
end
end

Expand Down

0 comments on commit 18ef0fe

Please sign in to comment.