Class: Lotus::Assets::Config::NullDigestManifest Private

Inherits:
Utils::BasicObject
Defined in:
lib/lotus/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 digest manifest.

It indicates that the digest manifest wasn't loaded yet.

At the load time, this should be replaced by an instance of Lotus::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 Lotus::Assets::MissingDigestManifestError.

Instance Method Summary collapse

Constructor Details

#initialize(configuration) ⇒ Lotus::Assets::Config::NullDigestManifest

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

Parameters:

Since:

  • 0.1.0


56
57
58
# File 'lib/lotus/assets/config/manifest.rb', line 56

def initialize(configuration)
  @configuration = configuration
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject

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.


64
65
66
67
68
# File 'lib/lotus/assets/config/manifest.rb', line 64

def method_missing(*)
  ::Kernel.raise(
    ::Lotus::Assets::MissingDigestManifestError.new(@configuration.manifest_path)
  )
end