Sha256: 6e140704780fb605a535dff292ad9c6c02555381dff50b4964d031076002a0b2

Contents?: true

Size: 247 Bytes

Versions: 5

Compression:

Stored size: 247 Bytes

Contents

# -*- encoding : utf-8 -*-
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

5 entries across 5 versions & 1 rubygems

Version Path
lambda_driver-1.3.0 lib/lambda_driver/disjunction.rb
lambda_driver-1.2.4 lib/lambda_driver/disjunction.rb
lambda_driver-1.2.3 lib/lambda_driver/disjunction.rb
lambda_driver-1.2.2 lib/lambda_driver/disjunction.rb
lambda_driver-1.2.1 lib/lambda_driver/disjunction.rb