Class: Axiom::Function::Predicate::NoMatch
- Inherits:
-
Axiom::Function::Predicate
- Object
- Axiom::Function
- Axiom::Function::Predicate
- Axiom::Function::Predicate::NoMatch
- Includes:
- Comparable
- Defined in:
- lib/axiom/function/predicate/no_match.rb
Overview
A predicate representing no regexp match between operands
Defined Under Namespace
Modules: Methods
Instance Attribute Summary
Attributes included from Operation::Binary
Class Method Summary collapse
-
.call(left, right) ⇒ Boolean
Evaluate the values for no match.
-
.inverse ⇒ Class<Match>
Return the inverse predicate class.
-
.operation ⇒ Symbol
Return the NoMatch 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(left, right) ⇒ Boolean
Evaluate the values for no match
46 47 48 |
# File 'lib/axiom/function/predicate/no_match.rb', line 46 def self.call(left, right) left !~ right end |
.inverse ⇒ Class<Match>
Return the inverse predicate class
31 32 33 |
# File 'lib/axiom/function/predicate/no_match.rb', line 31 def self.inverse Match end |
.operation ⇒ Symbol
Return the NoMatch operation
19 20 21 |
# File 'lib/axiom/function/predicate/no_match.rb', line 19 def self.operation :'!~' end |