Module: L43::Time::Tools::Scanner
Instance Method Summary collapse
Instance Method Details
#scan_with_captures(str:, rgx:, names: :keys) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/l43/time/tools/scanner.rb', line 8 def scan_with_captures(str:, rgx:, names: :keys) result = [] str .scan(rgx) { |*| result << _extract(from: Regexp.last_match, names:) } result end |