Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/wukong/model/flatpack_parser/flat.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) match_all(regex)



2
3
4
# File 'lib/wukong/model/flatpack_parser/flat.rb', line 2

def match_all regex
  self.to_enum(:scan, regex).map {Regexp.last_match}
end