Sha256: 16e263e4bcddd1298c319a2018beb61fed7eb128e4de930cf1aa40f1c28704f0

Contents?: true

Size: 271 Bytes

Versions: 12

Compression:

Stored size: 271 Bytes

Contents

module LessonsIndexer
  module Collections
    class Base
      include Enumerable

      attr_reader :list

      def initialize(list)
        @list = list
      end

      def each
        list.map { |heading| yield heading }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lessons_indexer-1.0.3 lib/lessons_indexer/collections/base.rb
lessons_indexer-1.0.2.1 lib/lessons_indexer/collections/base.rb
lessons_indexer-1.0.0 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.3.1 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.3.0 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.2.3 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.2.2 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.2.1 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.2.0 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.1.2 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.1.1 lib/lessons_indexer/collections/base.rb
lessons_indexer-0.1.0 lib/lessons_indexer/collections/base.rb