Sha256: 2634517a998d1c8b7e6d23d26603b0d198c418311b58f005689f8cb72e74ed39

Contents?: true

Size: 241 Bytes

Versions: 27

Compression:

Stored size: 241 Bytes

Contents

# frozen_string_literal: true

module Journal
  class Sections < Hash
    def initialize(sections)
      sections.each do |sect|
        section = Section.new(sect)
        self[section.key] = section
      end
      super
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
journal-cli-1.0.16 lib/journal-cli/sections.rb
journal-cli-1.0.15 lib/journal-cli/sections.rb
journal-cli-1.0.14 lib/journal-cli/sections.rb
journal-cli-1.0.13 lib/journal-cli/sections.rb
journal-cli-1.0.12 lib/journal-cli/sections.rb
journal-cli-1.0.11 lib/journal-cli/sections.rb
journal-cli-1.0.10 lib/journal-cli/sections.rb