Class: Minipack::Manifest::ChunkGroup
- Inherits:
-
Object
- Object
- Minipack::Manifest::ChunkGroup
- Defined in:
- lib/minipack/manifest.rb
Overview
A class that represents a group of chunked entries in a manifest
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(entries) ⇒ ChunkGroup
constructor
A new instance of ChunkGroup.
Constructor Details
#initialize(entries) ⇒ ChunkGroup
Returns a new instance of ChunkGroup.
30 31 32 |
# File 'lib/minipack/manifest.rb', line 30 def initialize(entries) @entries = Array(entries).map { |entry| entry.is_a?(String) ? Entry.new(entry) : entry } end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
27 28 29 |
# File 'lib/minipack/manifest.rb', line 27 def entries @entries end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 |
# File 'lib/minipack/manifest.rb', line 34 def ==(other) @entries == other.entries end |