Method: Nodule::Base#initialize
- Defined in:
- lib/nodule/base.rb
#initialize(opts = {}) ⇒ Base
Create a new Nodule handler. This is meant to be a bass class for higher-level Nodule types.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/nodule/base.rb', line 25 def initialize(opts={}) @read_count = 0 @readers ||= [] @output ||= [] @prefix = opts[:prefix] || '' @verbose = opts[:verbose] @done = false @topology = nil @capture_enabled = false add_readers(opts[:reader]) if opts[:reader] run if opts[:run] end |