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.36 lib/journal-cli/sections.rb
journal-cli-1.0.35 lib/journal-cli/sections.rb
journal-cli-1.0.34 lib/journal-cli/sections.rb
journal-cli-1.0.33 lib/journal-cli/sections.rb
journal-cli-1.0.32 lib/journal-cli/sections.rb
journal-cli-1.0.31 lib/journal-cli/sections.rb
journal-cli-1.0.30 lib/journal-cli/sections.rb
journal-cli-1.0.29 lib/journal-cli/sections.rb
journal-cli-1.0.28 lib/journal-cli/sections.rb
journal-cli-1.0.27 lib/journal-cli/sections.rb
journal-cli-1.0.26 lib/journal-cli/sections.rb
journal-cli-1.0.25 lib/journal-cli/sections.rb
journal-cli-1.0.24 lib/journal-cli/sections.rb
journal-cli-1.0.23 lib/journal-cli/sections.rb
journal-cli-1.0.22 lib/journal-cli/sections.rb
journal-cli-1.0.21 lib/journal-cli/sections.rb
journal-cli-1.0.20 lib/journal-cli/sections.rb
journal-cli-1.0.19 lib/journal-cli/sections.rb
journal-cli-1.0.18 lib/journal-cli/sections.rb
journal-cli-1.0.17 lib/journal-cli/sections.rb