class Fear::PartialFunction::Guard::And3

@api private

Attributes

c1[R]
c2[R]
c3[R]

Public Class Methods

new(c1, c2, c3) click to toggle source

@param c1 [#===] @param c2 [#===] @param c3 [#===]

# File lib/fear/partial_function/guard/and3.rb, line 11
def initialize(c1, c2, c3)
  @c1 = c1
  @c2 = c2
  @c3 = c3
end

Public Instance Methods

===(arg) click to toggle source

@param arg [any] @return [Boolean]

# File lib/fear/partial_function/guard/and3.rb, line 35
def ===(arg)
  (c1 === arg) && (c2 === arg) && (c3 === arg)
end
and(other) click to toggle source

@param other [Fear::PartialFunction::Guard] @return [Fear::PartialFunction::Guard]

# File lib/fear/partial_function/guard/and3.rb, line 23
def and(other)
  Guard::And.new(self, other)
end
or(other) click to toggle source

@param other [Fear::PartialFunction::Guard] @return [Fear::PartialFunction::Guard]

# File lib/fear/partial_function/guard/and3.rb, line 29
def or(other)
  Guard::Or.new(self, other)
end