Class: Axiom::Function::Predicate::Match
- Inherits:
-
Axiom::Function::Predicate
- Object
- Axiom::Function
- Axiom::Function::Predicate
- Axiom::Function::Predicate::Match
- Includes:
- Comparable
- Defined in:
- lib/axiom/function/predicate/match.rb
Overview
A predicate representing a regexp match between operands
Defined Under Namespace
Modules: Methods
Instance Attribute Summary
Attributes included from Operation::Binary
Class Method Summary collapse
-
.call ⇒ Boolean
Evaluate the left and right value to see if they match.
-
.inverse ⇒ Class<NoMatch>
Return the inverse predicate class.
-
.operation ⇒ Symbol
Return the Match operation.
Methods inherited from Axiom::Function::Predicate
Methods included from Binary::Invertible
Methods included from Binary
Methods included from Operation::Binary
Methods included from Connective::Conjunction::Methods
Methods included from Aliasable
Methods included from Connective::Disjunction::Methods
Methods included from Connective::Negation::Methods
Methods inherited from Axiom::Function
extract_value, rename_attributes, #type
Methods included from Visitable
Class Method Details
.call ⇒ Boolean
Evaluate the left and right value to see if they match
19 20 21 |
# File 'lib/axiom/function/predicate/match.rb', line 19 def self.call(*) super ? true : false end |
.inverse ⇒ Class<NoMatch>
Return the inverse predicate class
43 44 45 |
# File 'lib/axiom/function/predicate/match.rb', line 43 def self.inverse NoMatch end |
.operation ⇒ Symbol
Return the Match operation
31 32 33 |
# File 'lib/axiom/function/predicate/match.rb', line 31 def self.operation :=~ end |