Class: RailsExternalAssets::Configuration
- Inherits:
-
Object
- Object
- RailsExternalAssets::Configuration
- Defined in:
- lib/rails_external_assets/configuration.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#build_script ⇒ Object
Returns the value of attribute build_script.
-
#manifest_file ⇒ Object
Returns the value of attribute manifest_file.
-
#sprockets_directives ⇒ Object
Returns the value of attribute sprockets_directives.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/rails_external_assets/configuration.rb', line 24 def initialize # base path should be off Rails public/ @base_path = '/external-assets/' @manifest_file = 'public/external-assets/manifest.json' @sprockets_directives = [ { mime_type: 'application/javascript', comments: ['//', ['/*', '*/']] }, { mime_type: 'text/css', comments: ['//', ['/*', '*/']] } ] @build_script = 'echo "You did not define a build script"' end |
Instance Attribute Details
#base_path ⇒ Object
Returns the value of attribute base_path.
19 20 21 |
# File 'lib/rails_external_assets/configuration.rb', line 19 def base_path @base_path end |
#build_script ⇒ Object
Returns the value of attribute build_script.
19 20 21 |
# File 'lib/rails_external_assets/configuration.rb', line 19 def build_script @build_script end |
#manifest_file ⇒ Object
Returns the value of attribute manifest_file.
19 20 21 |
# File 'lib/rails_external_assets/configuration.rb', line 19 def manifest_file @manifest_file end |
#sprockets_directives ⇒ Object
Returns the value of attribute sprockets_directives.
19 20 21 |
# File 'lib/rails_external_assets/configuration.rb', line 19 def sprockets_directives @sprockets_directives end |