Module: ExAequo::Tools::TextScanner
Instance Method Summary collapse
Instance Method Details
#scan(str, rgx: '/', ws_at_end: true) ⇒ Object
6 7 8 9 |
# File 'lib/ex_aequo/tools/text_scanner.rb', line 6 def scan(str, rgx: '/', ws_at_end: true) r = Regexp === rgx ? r : Regex.compile(rgx) _scan(str, rgx: r, ws_at_end:) end |