Class: Simpacker::Configuration
- Inherits:
-
Object
- Object
- Simpacker::Configuration
- Defined in:
- lib/simpacker/configuration.rb
Instance Attribute Summary collapse
-
#cache_manifest ⇒ Object
Returns the value of attribute cache_manifest.
-
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
Instance Method Summary collapse
- #cache_manifest? ⇒ Boolean
-
#initialize(manifest_path:, cache_manifest: true) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(manifest_path:, cache_manifest: true) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/simpacker/configuration.rb', line 5 def initialize(manifest_path:, cache_manifest: true) @manifest_path = manifest_path @cache_manifest = cache_manifest end |
Instance Attribute Details
#cache_manifest ⇒ Object
Returns the value of attribute cache_manifest.
3 4 5 |
# File 'lib/simpacker/configuration.rb', line 3 def cache_manifest @cache_manifest end |
#manifest_path ⇒ Object
Returns the value of attribute manifest_path.
3 4 5 |
# File 'lib/simpacker/configuration.rb', line 3 def manifest_path @manifest_path end |
Instance Method Details
#cache_manifest? ⇒ Boolean
10 11 12 |
# File 'lib/simpacker/configuration.rb', line 10 def cache_manifest? !!cache_manifest end |