Module: Axiom::Function::Predicate::Match::Methods

Included in:
Attribute::String
Defined in:
lib/axiom/function/predicate/match.rb

Instance Method Summary collapse

Instance Method Details

#match(regexp) ⇒ Match

Compare the left to see if it matches the right

Examples:

match = expression.match(regexp)

Parameters:

  • regexp (Regexp)

Returns:



59
60
61
# File 'lib/axiom/function/predicate/match.rb', line 59

def match(regexp)
  Match.new(self, regexp)
end