Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/kleene/patches.rb
Instance Method Summary collapse
-
#scan_matches(pattern) ⇒ Object
: Array(MatchData).
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 |