Sha256: b86ac7c98b0880ec84ac56f47f2c411a763ec6ab84265f59af3877e71cfd53e4

Contents?: true

Size: 391 Bytes

Versions: 13

Compression:

Stored size: 391 Bytes

Contents

# Copyright (C) 2011 AMEE UK Ltd. - http://www.amee.com
# Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details.

class Proc

  # Shorthand method for calling <tt>self</tt> passing <tt>x</tt> as a block 
  # variable.
  # 
  # This is required for ruby 1.8 only, as it mimics functionality added in
  # version 1.9
  #
  def===(x)
    call(x)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
amee-data-abstraction-2.3.1 lib/core-extensions/proc.rb
amee-data-abstraction-2.3.0 lib/core-extensions/proc.rb
amee-data-abstraction-2.2.2 lib/core-extensions/proc.rb
amee-data-abstraction-2.2.1 lib/core-extensions/proc.rb
amee-data-abstraction-2.2.0 lib/core-extensions/proc.rb
amee-data-abstraction-1.3.1 lib/core-extensions/proc.rb
amee-data-abstraction-1.3.0 lib/core-extensions/proc.rb
amee-data-abstraction-2.1.1 lib/core-extensions/proc.rb
amee-data-abstraction-2.1.0 lib/core-extensions/proc.rb
amee-data-abstraction-1.2.0 lib/core-extensions/proc.rb
amee-data-abstraction-2.0.0 lib/core-extensions/proc.rb
amee-data-abstraction-1.1.0 lib/core-extensions/proc.rb
amee-data-abstraction-1.0.0 lib/core-extensions/proc.rb