Class: Fear::PartialFunction::Guard::And3 Private
- Inherits:
-
Fear::PartialFunction::Guard
- Object
- Fear::PartialFunction::Guard
- Fear::PartialFunction::Guard::And3
- Defined in:
- lib/fear/partial_function/guard/and3.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #===(arg) ⇒ Boolean private
- #and(other) ⇒ Fear::PartialFunction::Guard private
-
#initialize(c1, c2, c3) ⇒ And3
constructor
private
A new instance of And3.
- #or(other) ⇒ Fear::PartialFunction::Guard private
Methods inherited from Fear::PartialFunction::Guard
Constructor Details
#initialize(c1, c2, c3) ⇒ And3
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of And3.
11 12 13 14 15 |
# File 'lib/fear/partial_function/guard/and3.rb', line 11 def initialize(c1, c2, c3) @c1 = c1 @c2 = c2 @c3 = c3 end |
Instance Method Details
#===(arg) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/fear/partial_function/guard/and3.rb', line 35 def ===(arg) (c1 === arg) && (c2 === arg) && (c3 === arg) end |
#and(other) ⇒ Fear::PartialFunction::Guard
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/fear/partial_function/guard/and3.rb', line 23 def and(other) Guard::And.new(self, other) end |
#or(other) ⇒ Fear::PartialFunction::Guard
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'lib/fear/partial_function/guard/and3.rb', line 29 def or(other) Guard::Or.new(self, other) end |