Class: CarrierWave::Processor::Node
- Inherits:
-
Object
- Object
- CarrierWave::Processor::Node
- Includes:
- Dsl
- Defined in:
- lib/carrierwave/processor/node.rb
Instance Attribute Summary collapse
-
#cw_processors ⇒ Object
readonly
Returns the value of attribute cw_processors.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#processors ⇒ Object
Returns the value of attribute processors.
Instance Method Summary collapse
- #background(*args, &block) ⇒ Object
-
#initialize(opts = {}) ⇒ Node
constructor
A new instance of Node.
- #process(*args, &block) ⇒ Object
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 = {} = opts end |
Instance Attribute Details
#cw_processors ⇒ Object (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 |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/carrierwave/processor/node.rb', line 8 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/carrierwave/processor/node.rb', line 8 def end |
#processors ⇒ Object
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 |