Class: Yardstick::DocumentSet

Inherits:
OrderedSet show all
Defined in:
lib/yardstick/document_set.rb

Overview

A set of yardstick documents

Instance Method Summary collapse

Methods inherited from OrderedSet

#<<, #each, #empty?, #include?, #index, #initialize, #length, #merge

Constructor Details

This class inherits a constructor from Yardstick::OrderedSet

Instance Method Details

#measure(config) ⇒ Yardstick::MeasurementSet

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Measure documents using given config

Returns:


12
13
14
15
16
17
# File 'lib/yardstick/document_set.rb', line 12

def measure(config)
  reduce(MeasurementSet.new) do |set, document|
    set.merge(Document.measure(document, config))
    set
  end
end