Class: Proc

Inherits:
Object
  • Object
show all
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

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