summaryrefslogtreecommitdiff
path: root/golf_prelude.rb
diff options
context:
space:
mode:
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