class Oni::Mapper
Abstract mapper class that takes care of some common boilerplate code.
Public Instance Methods
map_input(input)
click to toggle source
Remaps the input of the daemon into a format that's easy to use for the worker.
@param [Mixed] input @return [Mixed]
# File lib/oni/mapper.rb, line 15 def map_input(input) return input end
map_output(output)
click to toggle source
Remaps the output of the working into a format that's easy to use for the daemon layer.
@param [Mixed] output @return [Mixed]
# File lib/oni/mapper.rb, line 26 def map_output(output) return output end