Class: Hanami::Assets

Inherits:
Object show all
Defined in:
gems/gems/hanami-assets-2.1.0/lib/hanami/assets.rb,
gems/gems/hanami-assets-2.1.0/lib/hanami/assets/asset.rb,
gems/gems/hanami-assets-2.1.0/lib/hanami/assets/config.rb,
gems/gems/hanami-assets-2.1.0/lib/hanami/assets/errors.rb,
gems/gems/hanami-assets-2.1.0/lib/hanami/assets/version.rb,
gems/gems/hanami-assets-2.1.0/lib/hanami/assets/base_url.rb

Overview

Assets management for Ruby web applications

Since:

  • 0.1.0

Constant Summary collapse

VERSION =

Defines the version

Since:

  • 0.1.0

"2.1.0"

Instance Method Summary collapse

Instance Method Details

#manifestObject (private)

Since:

  • 0.1.0

def manifest
  return @manifest if instance_variable_defined?(:@manifest)

  full_manifest_path = root.join(MANIFEST_PATH)

  unless full_manifest_path.exist?
    raise ManifestMissingError.new(full_manifest_path.to_s)
  end

  @manifest = JSON.parse(File.read(full_manifest_path))
end