Method: Parslet::Slice#match

Defined in:
lib/parslet/slice.rb

#match(regexp) ⇒ Object

Match regular expressions.



51
52
53
# File 'lib/parslet/slice.rb', line 51

def match(regexp)
  str.match(regexp)
end