Class: Oni::Mapper
Overview
Abstract mapper class that takes care of some common boilerplate code.
Instance Method Summary collapse
-
#map_input(input) ⇒ Mixed
Remaps the input of the daemon into a format that's easy to use for the worker.
-
#map_output(output) ⇒ Mixed
Remaps the output of the working into a format that's easy to use for the daemon layer.
Methods included from Configurable
included, #option, #require_option!
Instance Method Details
#map_input(input) ⇒ Mixed
Remaps the input of the daemon into a format that's easy to use for the worker.
15 16 17 |
# File 'lib/oni/mapper.rb', line 15 def map_input(input) return input end |
#map_output(output) ⇒ Mixed
Remaps the output of the working into a format that's easy to use for the daemon layer.
26 27 28 |
# File 'lib/oni/mapper.rb', line 26 def map_output(output) return output end |