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.10 lib/inch/evaluation/role/missing.rb
inch-0.4.9 lib/inch/evaluation/role/missing.rb
inch-0.4.8 lib/inch/evaluation/role/missing.rb
inch-0.4.7 lib/inch/evaluation/role/missing.rb
inch-0.5.0.rc3 lib/inch/evaluation/role/missing.rb
inch-0.5.0.rc2 lib/inch/evaluation/role/missing.rb
inch-0.5.0.rc1 lib/inch/evaluation/role/missing.rb
inch-0.4.6 lib/inch/evaluation/role/missing.rb
inch-0.4.5 lib/inch/evaluation/role/missing.rb
inch-0.4.4 lib/inch/evaluation/role/missing.rb
inch-0.4.4.rc4 lib/inch/evaluation/role/missing.rb
inch-0.4.4.rc3 lib/inch/evaluation/role/missing.rb
inch-0.4.4.rc2 lib/inch/evaluation/role/missing.rb
inch-0.4.4.rc1 lib/inch/evaluation/role/missing.rb
inch-0.4.3 lib/inch/evaluation/role/missing.rb
inch-0.4.3.rc2 lib/inch/evaluation/role/missing.rb
inch-0.4.3.rc1 lib/inch/evaluation/role/missing.rb
inch-0.4.2 lib/inch/evaluation/role/missing.rb
inch-0.4.1 lib/inch/evaluation/role/missing.rb
inch-0.4.0 lib/inch/evaluation/role/missing.rb