class Axiom::Function::Predicate::Match

A predicate representing a regexp match between operands

Public Class Methods

call(*) click to toggle source

Evaluate the left and right value to see if they match

@example

matches = Match.call(left, right)

@return [Boolean]

@api public

Calls superclass method
# File lib/axiom/function/predicate/match.rb, line 19
def self.call(*)
  super ? true : false
end
inverse() click to toggle source

Return the inverse predicate class

@example

Match.inverse  # => NoMatch

@return [Class<NoMatch>]

@api public

# File lib/axiom/function/predicate/match.rb, line 43
def self.inverse
  NoMatch
end
operation() click to toggle source

Return the Match operation

@example

Match.operation  # => :=~

@return [Symbol]

@api public

# File lib/axiom/function/predicate/match.rb, line 31
def self.operation
  :=~
end