Class: Deadfire::Configuration
- Inherits:
-
Object
- Object
- Deadfire::Configuration
- Defined in:
- lib/deadfire/configuration.rb
Instance Attribute Summary collapse
-
#asset_registry ⇒ Object
readonly
Returns the value of attribute asset_registry.
-
#compressed ⇒ Object
Returns the value of attribute compressed.
-
#directories ⇒ Object
readonly
Returns the value of attribute directories.
-
#excluded_files ⇒ Object
Returns the value of attribute excluded_files.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#root_path ⇒ Object
Returns the value of attribute root_path.
-
#supressed ⇒ Object
Returns the value of attribute supressed.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #preprocess(*mixins, path: "*") ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 |
# File 'lib/deadfire/configuration.rb', line 8 def initialize @directories = [] @root_path = "" @compressed = false @logger = Logger.new(STDOUT, level: :warn) @supressed = true @excluded_files = [] @asset_registry = AssetRegistry.new end |
Instance Attribute Details
#asset_registry ⇒ Object (readonly)
Returns the value of attribute asset_registry.
6 7 8 |
# File 'lib/deadfire/configuration.rb', line 6 def asset_registry @asset_registry end |
#compressed ⇒ Object
Returns the value of attribute compressed.
6 7 8 |
# File 'lib/deadfire/configuration.rb', line 6 def compressed @compressed end |
#directories ⇒ Object (readonly)
Returns the value of attribute directories.
6 7 8 |
# File 'lib/deadfire/configuration.rb', line 6 def directories @directories end |
#excluded_files ⇒ Object
Returns the value of attribute excluded_files.
6 7 8 |
# File 'lib/deadfire/configuration.rb', line 6 def excluded_files @excluded_files end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/deadfire/configuration.rb', line 6 def logger @logger end |
#root_path ⇒ Object
Returns the value of attribute root_path.
6 7 8 |
# File 'lib/deadfire/configuration.rb', line 6 def root_path @root_path end |
#supressed ⇒ Object
Returns the value of attribute supressed.
6 7 8 |
# File 'lib/deadfire/configuration.rb', line 6 def supressed @supressed end |
Instance Method Details
#preprocess(*mixins, path: "*") ⇒ Object
43 44 45 |
# File 'lib/deadfire/configuration.rb', line 43 def preprocess(*mixins, path: "*") @asset_registry.register_path(path, *mixins) end |