Class: Acbaker::Processors::Base
- Inherits:
-
Object
- Object
- Acbaker::Processors::Base
- Defined in:
- lib/acbaker/processors/base.rb
Direct Known Subclasses
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
- #defaults ⇒ Object
-
#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.
10 11 12 13 |
# File 'lib/acbaker/processors/base.rb', line 10 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
#defaults ⇒ Object
6 7 8 |
# File 'lib/acbaker/processors/base.rb', line 6 def defaults {} end |
#run(image, image_spec, width = nil, height = nil) ⇒ Object
15 16 17 |
# File 'lib/acbaker/processors/base.rb', line 15 def run(image, image_spec, width=nil, height=nil) throw "Acbaker::Processors::Base should be extended" end |