Sha256: 06d05f78ff1a494180f6294d2aae04178050aa20f1dd77229d6eaa654935c431

Contents?: true

Size: 413 Bytes

Versions: 8

Compression:

Stored size: 413 Bytes

Contents

module Yardstick
  class RuleSet < OrderedSet

    # Measure a docstring with all Rules
    #
    # @param [YARD::Docstring] docstring
    #   the docstring to measure
    #
    # @return [MeasurementSet]
    #   a collection of measurements
    #
    # @api private
    def measure(docstring)
      MeasurementSet.new(map { |rule| rule.measure(docstring) })
    end

  end # class RuleSet
end # module Yardstick

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
dkubb-yardstick-0.1.0 lib/yardstick/rule_set.rb
yardstick-0.7.0 lib/yardstick/rule_set.rb
yardstick-0.6.0 lib/yardstick/rule_set.rb
yardstick-0.5.0 lib/yardstick/rule_set.rb
yardstick-0.4.0 lib/yardstick/rule_set.rb
yardstick-0.3.0 lib/yardstick/rule_set.rb
yardstick-0.2.0 lib/yardstick/rule_set.rb
yardstick-0.1.0 lib/yardstick/rule_set.rb