Module: L42::Interfaces::MapInp
Instance Method Summary collapse
Instance Method Details
#call(input, pattern) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/l42/interfaces/map_inp.rb', line 9 def call(input, pattern) pattern = pattern.gsub(Now, Time.now.to_i.to_s(16)) [ :stdout, input.each_with_index.map(&_map(pattern)) ] end |