class Hanami::Assets::Config::NullManifest

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.

@since 0.1.0 @api private

@see Hanami::Assets::Configuration#manifest @see Hanami::Assets::Configuration#manifest_path @see Hanami::Assets::Configuration#fingerprint

Public Class Methods

new(configuration) click to toggle source

Return a new instance

@param configuration [Hanami::Assets::Configuration]

@return [Hanami::Assets::Config::NullManifest] a new instance

@since 0.1.0 @api private

# File lib/hanami/assets/config/manifest.rb, line 58
def initialize(configuration)
  @configuration = configuration
end

Public Instance Methods

method_missing(*) click to toggle source

@raise [Hanami::Assets::MissingManifestFileError]

@since 0.1.0 @api private

# 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
respond_to_missing?(*) click to toggle source

@return [FalseClass] returns false

@since 1.1.0 @api private

# File lib/hanami/assets/config/manifest.rb, line 76
def respond_to_missing?(*)
  false
end