Class: AssetLibrary::Compiler::Base
- Inherits:
-
Object
- Object
- AssetLibrary::Compiler::Base
- Defined in:
- lib/asset_library/compiler/base.rb
Instance Attribute Summary collapse
-
#asset_modules ⇒ Object
readonly
Returns the value of attribute asset_modules.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #add_asset_module(asset_module) ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
- #write_all_caches(format = nil) ⇒ Object
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
4 5 6 7 |
# File 'lib/asset_library/compiler/base.rb', line 4 def initialize(config) @config = config || {} @asset_modules = [] end |
Instance Attribute Details
#asset_modules ⇒ Object (readonly)
Returns the value of attribute asset_modules.
9 10 11 |
# File 'lib/asset_library/compiler/base.rb', line 9 def asset_modules @asset_modules end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/asset_library/compiler/base.rb', line 9 def config @config end |
Instance Method Details
#add_asset_module(asset_module) ⇒ Object
11 12 13 |
# File 'lib/asset_library/compiler/base.rb', line 11 def add_asset_module(asset_module) @asset_modules << asset_module end |
#write_all_caches(format = nil) ⇒ Object
15 16 17 |
# File 'lib/asset_library/compiler/base.rb', line 15 def write_all_caches(format = nil) raise NotImplementedError, "abstract method" end |