Sha256: 922be583312db0dc7c7c68a58b31163f45d77f5ef2f565445bf78648b1393c96

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

# encoding: utf-8

module Yardstick

  # A set of yardstick documents
  class DocumentSet < OrderedSet

    # Measure documents using given config
    #
    # @return [Yardstick::MeasurementSet]
    #   a collection of measurements
    #
    # @api private
    def measure(config)
      each_with_object(MeasurementSet.new) do |document, set|
        set.merge(Document.measure(document, config))
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yardstick-0.9.7 lib/yardstick/document_set.rb