summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 07:42:53 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 07:42:53 (GMT)
commiteadfbddd93caa870c062de5527b4789907d323f7 (patch)
treeb5b1626a785aff4a3b374d739f830b56673410aa /golf_prelude.rb
parentc90dbedbb1dab110596bad9d255bc61a86b89eb0 (diff)
* golf_prelude.rb (h): add new method for all golfers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'golf_prelude.rb')
-rw-r--r--golf_prelude.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/golf_prelude.rb b/golf_prelude.rb
index 347d316..a4b2753 100644
--- a/golf_prelude.rb
+++ b/golf_prelude.rb
@@ -4,4 +4,8 @@ class Object
t = (methods + private_methods).sort.find{|e|r=~e}
t ? __send__(t, *a, &b) : super
end
+
+ def h(a='H', b='w', c='!')
+ puts "#{a}ello, #{b}orld#{c}"
+ end
end