module Axiom::Function::Predicate::Match::Methods

Public Instance Methods

match(regexp) click to toggle source

Compare the left to see if it matches the right

@example

match = expression.match(regexp)

@param [Regexp] regexp

@return [Match]

@api public

# File lib/axiom/function/predicate/match.rb, line 59
def match(regexp)
  Match.new(self, regexp)
end