summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 14:49:22 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-30 14:49:22 (GMT)
commit21789d53316b3894cbe81382ea45841728579225 (patch)
tree68b1636c5c2eba7f4564fac9e420faa1a1cee024 /golf_prelude.rb
parent75ee1d525277c0e07fce061af0ad73cda00250ae (diff)
* golf_prelude.rb (String#/): define / as split, as association of
Array#*. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14802 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 c0ae37f..9cecd31 100644
--- a/golf_prelude.rb
+++ b/golf_prelude.rb
@@ -28,3 +28,7 @@ class Integer
alias each times
include Enumerable
end
+
+class String
+ alias / split
+end