Module: L42::Interfaces::MapInp
- Extended by:
- MapInp
- Included in:
- MapInp
- Defined in:
- lib/l42/interfaces/map_inp.rb,
lib/l42/interfaces/map_inp/rgx_filter.rb,
lib/l42/interfaces/map_inp/pattern_mapper.rb
Defined Under Namespace
Modules: PatternMapper, RgxFilter
Instance Method Summary collapse
Instance Method Details
#call(input, *args) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/l42/interfaces/map_inp.rb', line 11 def call(input, *args) parser = Lab42::Rgxargs.new(posix: true) parser.parse(args) => , positionals, _ if .r RgxFilter.run(input, positionals.first, ) else PatternMapper.run(input, positionals.first, ) end end |