Method: Translatomatic::String#match

Defined in:
lib/translatomatic/string.rb

#match(pattern) ⇒ MatchData

Invokes value.match

Parameters:

  • The regex pattern to match

Returns:

  • Object describing the match, or nil if no match



44
45
46
# File 'lib/translatomatic/string.rb', line 44

def match(pattern)
  @value.match(pattern)
end