Class: Minipack::Manifest::ChunkGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/minipack/manifest.rb

Overview

A class that represents a group of chunked entries in a manifest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries) ⇒ ChunkGroup

Returns a new instance of ChunkGroup.

Parameters:



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

#entriesObject (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