summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 08:44:45 (GMT)
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-07 08:44:45 (GMT)
commit1df42597d15416357a20bd68700ce1a2d245e8bb (patch)
treef588f28559958e27464866d7b137955bfff04a6f /golf_prelude.rb
parentfc634cc092f486adfc911f614b7b4aa2c48c698d (diff)
cancel subversion backfire. sorry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'golf_prelude.rb')
-rw-r--r--golf_prelude.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/golf_prelude.rb b/golf_prelude.rb
index 4363b49..b090503 100644
--- a/golf_prelude.rb
+++ b/golf_prelude.rb
@@ -112,3 +112,11 @@ class Enumerator
alias old_inspect inspect
alias inspect old_to_s
end
+
+class Symbol
+ def call(*args, &block)
+ proc do |recv|
+ recv.__send__(self, *args, &block)
+ end
+ end
+end