module DeepCover::Tools::ScanMatchDatas
Public Instance Methods
scan_match_datas(source, matcher)
click to toggle source
Like String#scan, but return the MatchData object instead
# File lib/deep_cover/tools/scan_match_datas.rb, line 6 def scan_match_datas(source, matcher) source.to_enum(:scan, matcher).map { Regexp.last_match } end