Class: Webpack::Manifest::Configuration
- Inherits:
-
Object
- Object
- Webpack::Manifest::Configuration
- Defined in:
- lib/webpack/manifest/configuration.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/webpack/manifest/configuration.rb', line 7 def initialize @url = ENV.fetch("WEBPACK_MANIFEST_URL") { "/path/to/manifest.json" } @cache = ENV.fetch("WEBPACK_MANIFEST_CACHE", false) end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
5 6 7 |
# File 'lib/webpack/manifest/configuration.rb', line 5 def cache @cache end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/webpack/manifest/configuration.rb', line 5 def url @url end |