Sha256: 460ed45b10f05cc30f267df13f488a4fe7917046ecbc03a170345949a57f95f3

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

require 'marc/spec/queries/part'

module MARC
  module Spec
    module Queries
      # Supermodule of query objects that can return a result
      module Applicable
        include Part

        def apply(marc_obj)
          return [] unless can_apply?(marc_obj)

          do_apply(marc_obj)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-marc-spec-0.1.3 lib/marc/spec/queries/applicable.rb
ruby-marc-spec-0.1.2 lib/marc/spec/queries/applicable.rb
ruby-marc-spec-0.1.1 lib/marc/spec/queries/applicable.rb
ruby-marc-spec-0.1.0 lib/marc/spec/queries/applicable.rb