Method: IMW::Tools::Summarizer#initialize
- Defined in:
- lib/imw/tools/summarizer.rb
#initialize(*inputs) ⇒ IMW::Tools::Summarizer
Initialize a new Summarizer with the given inputs.
A Hash of options can be given as the last parameter.
32 33 34 35 |
# File 'lib/imw/tools/summarizer.rb', line 32 def initialize *inputs self. = (inputs.last.is_a?(Hash) && inputs.pop) || {} self.inputs = inputs.flatten end |