Class: AssetFinder::Configuration
- Inherits:
-
Object
- Object
- AssetFinder::Configuration
- Defined in:
- lib/asset_finder/configuration.rb
Constant Summary collapse
- DEFAULT =
{ javascript_patterns: [], javascript_root_path: 'app/assets/javascripts/', stylesheet_patterns: [], stylesheet_root_path: 'app/assets/stylesheets/', normalize_index_file: true }.freeze
Instance Attribute Summary collapse
-
#javascript_patterns ⇒ Object
Returns the value of attribute javascript_patterns.
-
#javascript_root_path ⇒ Object
Returns the value of attribute javascript_root_path.
-
#normalize_index_file ⇒ Object
Returns the value of attribute normalize_index_file.
-
#stylesheet_patterns ⇒ Object
Returns the value of attribute stylesheet_patterns.
-
#stylesheet_root_path ⇒ Object
Returns the value of attribute stylesheet_root_path.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 |
# File 'lib/asset_finder/configuration.rb', line 17 def initialize( = {}) DEFAULT.keys.each do |k| public_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 |
#javascript_root_path ⇒ Object
Returns the value of attribute javascript_root_path.
4 5 6 |
# File 'lib/asset_finder/configuration.rb', line 4 def javascript_root_path @javascript_root_path end |
#normalize_index_file ⇒ Object
Returns the value of attribute normalize_index_file.
7 8 9 |
# File 'lib/asset_finder/configuration.rb', line 7 def normalize_index_file @normalize_index_file end |
#stylesheet_patterns ⇒ Object
Returns the value of attribute stylesheet_patterns.
5 6 7 |
# File 'lib/asset_finder/configuration.rb', line 5 def stylesheet_patterns @stylesheet_patterns end |
#stylesheet_root_path ⇒ Object
Returns the value of attribute stylesheet_root_path.
6 7 8 |
# File 'lib/asset_finder/configuration.rb', line 6 def stylesheet_root_path @stylesheet_root_path end |