Module: L43MyRuby::MapLines::PatternMapper
- Extended by:
- PatternMapper
- Included in:
- PatternMapper
- Defined in:
- lib/l43_my_ruby/map_lines/pattern_mapper.rb
Instance Method Summary collapse
Instance Method Details
#run(input, pattern, options) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/l43_my_ruby/map_lines/pattern_mapper.rb', line 7 def run(input, pattern, ) [:sep] = "\u0000" if [:"0"] _compile(pattern, ) => pattern, , field_rgxn [ :stdout, input.each_with_index.map(&_map(pattern, , field_rgxn)) ] end |