Class: Hanami::Assets::Bundler::ManifestEntry Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/assets/bundler/manifest_entry.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.

Constructs a hash for a single asset’s manifest file entry

Since:

  • 0.3.0

Constant Summary collapse

SUBRESOURCE_INTEGRITY_SEPARATOR =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 0.3.0

'-'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(asset) ⇒ ManifestEntry

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

Since:

  • 0.3.0



17
18
19
# File 'lib/hanami/assets/bundler/manifest_entry.rb', line 17

def initialize(asset)
  @asset = asset
end

Instance Method Details

#entryObject

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.

A single entry for this asset, to go into manifest file

Since:

  • 0.3.0



24
25
26
# File 'lib/hanami/assets/bundler/manifest_entry.rb', line 24

def entry
  { name => values }
end