Class: AssetFinder::Configuration
- Inherits:
-
Object
- Object
- AssetFinder::Configuration
- Defined in:
- lib/asset_finder/configuration.rb
Constant Summary collapse
- DEFAULT =
{ javascript_patterns: [], stylesheet_patterns: [], normalize_index_file: true }.freeze
Instance Attribute Summary collapse
-
#javascript_patterns ⇒ Object
Returns the value of attribute javascript_patterns.
-
#normalize_index_file ⇒ Object
Returns the value of attribute normalize_index_file.
-
#stylesheet_patterns ⇒ Object
Returns the value of attribute stylesheet_patterns.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 |
# File 'lib/asset_finder/configuration.rb', line 13 def initialize( = {}) %i(javascript_patterns stylesheet_patterns normalize_index_file).each do |k| send(:"#{k}=", [k] || DEFAULT[k]) end end |
Instance Attribute Details
#javascript_patterns ⇒ Object
Returns the value of attribute javascript_patterns.
3 4 5 |
# File 'lib/asset_finder/configuration.rb', line 3 def javascript_patterns @javascript_patterns end |
#normalize_index_file ⇒ Object
Returns the value of attribute normalize_index_file.
5 6 7 |
# File 'lib/asset_finder/configuration.rb', line 5 def normalize_index_file @normalize_index_file end |
#stylesheet_patterns ⇒ Object
Returns the value of attribute stylesheet_patterns.
4 5 6 |
# File 'lib/asset_finder/configuration.rb', line 4 def stylesheet_patterns @stylesheet_patterns end |