Sha256: ba8e00ad5d055af3189ddf30e5ed8b3b5682ad1fcf19358f3b98f6af12db9092

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

module Yardstick

  # A set of rules to apply to docs
  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

4 entries across 4 versions & 1 rubygems

Version Path
yardstick-0.9.2 lib/yardstick/rule_set.rb
yardstick-0.9.1 lib/yardstick/rule_set.rb
yardstick-0.9.0 lib/yardstick/rule_set.rb
yardstick-0.8.0 lib/yardstick/rule_set.rb