Sha256: f981a6a7a26267b80a60512854e207701dbe590e1bd1b8adff427fd50d7a42b8

Contents?: true

Size: 245 Bytes

Versions: 17

Compression:

Stored size: 245 Bytes

Contents

module LessonsIndexer
  module Collections
    class HeadingsList < Base
      def for(lesson)
        detect do |heading|
          lesson.major == heading.major && lesson.minor == heading.minor
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
lessons_indexer-1.3.0 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-1.2.2 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-1.2.1 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-1.2.0 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-1.1.0 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-1.0.3 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-1.0.2.1 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-1.0.0 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.3.1 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.3.0 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.2.3 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.2.2 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.2.1 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.2.0 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.1.2 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.1.1 lib/lessons_indexer/collections/headings_list.rb
lessons_indexer-0.1.0 lib/lessons_indexer/collections/headings_list.rb