Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/kleene/patches.rb

Instance Method Summary collapse

Instance Method Details

#scan_matches(pattern) ⇒ Object

: Array(MatchData)



24
25
26
# File 'lib/kleene/patches.rb', line 24

def scan_matches(pattern) # : Array(MatchData)
  to_enum(:scan, pattern).map { Regexp.last_match }
end