Sha256: edb40e78eec58eee7d023be25dee717c05f5481428ee18df324b1823349256f0

Contents?: true

Size: 423 Bytes

Versions: 21

Compression:

Stored size: 423 Bytes

Contents

module Inch
  module Evaluation
    module Role
      # Missing is the base class for things that can be improved in the doc
      #
      class Missing < Base
        def score
          nil
        end

        # @return [Fixnum]
        #  a score that can be achieved by adding the missing thing mentioned
        #  by the role
        def potential_score
          @value.to_i
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
inch-0.4.0.rc3 lib/inch/evaluation/role/missing.rb