diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 07:42:53 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 07:42:53 +0000 |
commit | eadfbddd93caa870c062de5527b4789907d323f7 (patch) | |
tree | b5b1626a785aff4a3b374d739f830b56673410aa /golf_prelude.rb | |
parent | c90dbedbb1dab110596bad9d255bc61a86b89eb0 (diff) | |
download | ruby-eadfbddd93caa870c062de5527b4789907d323f7.tar.gz |
* 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.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/golf_prelude.rb b/golf_prelude.rb index 347d316cc7..a4b2753095 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 |