Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/core-extensions/proc.rb
Overview
Copyright © 2011 AMEE UK Ltd. - www.amee.com Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details.
Instance Method Summary collapse
-
#===(x) ⇒ Object
Shorthand method for calling
self
passingx
as a block variable.
Instance Method Details
#===(x) ⇒ Object
Shorthand method for calling self
passing x
as a block variable.
This is required for ruby 1.8 only, as it mimics functionality added in version 1.9
12 13 14 |
# File 'lib/core-extensions/proc.rb', line 12 def===(x) call(x) end |