Class: CarrierWave::Processor::Node

Inherits:
Object
  • Object
show all
Includes:
Dsl
Defined in:
lib/carrierwave/processor/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Dsl

#carrierwave_processor, #find_carrierwave_processor

Constructor Details

#initialize(opts = {}) ⇒ Node

Returns a new instance of Node.



12
13
14
15
16
# File 'lib/carrierwave/processor/node.rb', line 12

def initialize opts={}
  @cw_processors = []
  @processors = {}
  @options = opts
end

Instance Attribute Details

#cw_processorsObject (readonly)

Returns the value of attribute cw_processors.



10
11
12
# File 'lib/carrierwave/processor/node.rb', line 10

def cw_processors
  @cw_processors
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/carrierwave/processor/node.rb', line 8

def name
  @name
end

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/carrierwave/processor/node.rb', line 8

def options
  @options
end

#processorsObject

Returns the value of attribute processors.



9
10
11
# File 'lib/carrierwave/processor/node.rb', line 9

def processors
  @processors
end

Instance Method Details

#background(*args, &block) ⇒ Object



23
24
# File 'lib/carrierwave/processor/node.rb', line 23

def background *args, &block
end

#process(*args, &block) ⇒ Object



18
19
20
21
# File 'lib/carrierwave/processor/node.rb', line 18

def process *args, &block
  processor = {:args => args, :block => block}
  @cw_processors << processor
end