Sha256: 2d8bd72bec904621bd66c5a141ee1c7f963c07401f04ce4b4652bbe431e75703

Contents?: true

Size: 195 Bytes

Versions: 2

Compression:

Stored size: 195 Bytes

Contents

class Symbol
  include LambdaDriver::Callable
  include LambdaDriver::Currying if RUBY_VERSION < '1.9.0'

  def to_method
    lambda{|obj| obj._(self) }
  end

  alias_method :-@, :to_method
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lambda_driver-1.1.1 lib/lambda_driver/core_ext/symbol.rb
lambda_driver-1.1.0 lib/lambda_driver/core_ext/symbol.rb