Sha256: 9db14b56310235b6b464514f0e8d16270dfdcfff836beaf923286d529b1e25dd

Contents?: true

Size: 220 Bytes

Versions: 3

Compression:

Stored size: 220 Bytes

Contents

module LambdaDriver::Disjunction
  def disjunction(f = nil, &block)
    if f.nil? && (not block_given?)
      return self.method(:disjunction)
    end

    (block_given? ?  (yield self) : f.call(self)) || self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lambda_driver-1.2.0 lib/lambda_driver/disjunction.rb
lambda_driver-1.1.2 lib/lambda_driver/disjunction.rb
lambda_driver-1.1.1 lib/lambda_driver/disjunction.rb