Class: Hanami::Assets::Config::NullManifest Private
- Inherits:
- Utils::BasicObject
- Defined in:
- lib/hanami/assets/config/manifest.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Default value for configuration’s manifest.
It indicates that the manifest wasn’t loaded yet.
At the load time, this should be replaced by an instance of Hanami::Assets::Config::Manifest
.
If for some reason that won’t happen, the instance of this class is still referenced by the configuration and all the method invocations will raise a Hanami::Assets::MissingManifestFileError
.
Instance Method Summary collapse
-
#initialize(configuration) ⇒ Hanami::Assets::Config::NullManifest
constructor
private
Return a new instance.
- #method_missing ⇒ Object private
-
#respond_to_missing? ⇒ FalseClass
private
Returns false.
Constructor Details
#initialize(configuration) ⇒ Hanami::Assets::Config::NullManifest
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return a new instance
58 59 60 |
# File 'lib/hanami/assets/config/manifest.rb', line 58 def initialize(configuration) @configuration = configuration end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
66 67 68 69 70 |
# File 'lib/hanami/assets/config/manifest.rb', line 66 def method_missing(*) # rubocop:disable Style/MethodMissingSuper ::Kernel.raise( ::Hanami::Assets::MissingManifestFileError.new(@configuration.manifest_path) ) end |
Instance Method Details
#respond_to_missing? ⇒ FalseClass
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns false
76 77 78 |
# File 'lib/hanami/assets/config/manifest.rb', line 76 def respond_to_missing?(*) false end |