Class: Acbaker::Processors::Base
- Inherits:
-
Object
- Object
- Acbaker::Processors::Base
- Defined in:
- lib/acbaker/processors/base.rb
Constant Summary collapse
- @@defaults =
{}
Instance Attribute Summary collapse
-
#asset_pack ⇒ Object
Returns the value of attribute asset_pack.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(asset_pack, options = {}) ⇒ Base
constructor
A new instance of Base.
- #run(image, image_spec, width = nil, height = nil) ⇒ Object
Constructor Details
#initialize(asset_pack, options = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 10 |
# File 'lib/acbaker/processors/base.rb', line 7 def initialize(asset_pack, ={}) @asset_pack = asset_pack = ? @@defaults.merge() : @@defaults end |
Instance Attribute Details
#asset_pack ⇒ Object
Returns the value of attribute asset_pack.
4 5 6 |
# File 'lib/acbaker/processors/base.rb', line 4 def asset_pack @asset_pack end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/acbaker/processors/base.rb', line 4 def end |
Instance Method Details
#run(image, image_spec, width = nil, height = nil) ⇒ Object
12 13 14 |
# File 'lib/acbaker/processors/base.rb', line 12 def run(image, image_spec, width=nil, height=nil) throw "Acbaker::Processors::Base should be extended" end |