Module: L42::Interfaces::MapInp::RgxFilter
Instance Method Summary collapse
Instance Method Details
#run(input, rgx_str, options) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/l42/interfaces/map_inp/rgx_filter.rb', line 8 def run(input, rgx_str, ) rgx = Regexp.compile(rgx_str) [:sep] = "\u0000" if .to_h[:"0"] [ :stdout, input.filter_map(&_match_and_patterns(rgx, )) ] end |