diff options
Diffstat (limited to 'golf_prelude.rb')
-rw-r--r-- | golf_prelude.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/golf_prelude.rb b/golf_prelude.rb index 114e7dba5b..0e356b2537 100644 --- a/golf_prelude.rb +++ b/golf_prelude.rb @@ -20,13 +20,19 @@ class Object puts "#{a}ello, #{b}orld#{c}" end - def quine(src = $0) - SCRIPT_LINES__[src].join - end - alias say puts end +class Array + alias to_s join +end + +class FalseClass + def to_s + "" + end +end + class Integer alias each times include Enumerable |