Class: FFWD::Processor::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/ffwd/processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, factory, options) ⇒ Setup

Returns a new instance of Setup.



26
27
28
29
30
# File 'lib/ffwd/processor.rb', line 26

def initialize name, factory, options
  @name = name
  @factory = factory
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



24
25
26
# File 'lib/ffwd/processor.rb', line 24

def name
  @name
end

Instance Method Details

#setup(emitter) ⇒ Object



32
33
34
# File 'lib/ffwd/processor.rb', line 32

def setup emitter
  @factory.new emitter, @options
end