Sha256: 6ca15b6b51f34053c4ad5e2a37bd22b9e91a3cc470c1469b532f199216640ecb

Contents?: true

Size: 539 Bytes

Versions: 34

Compression:

Stored size: 539 Bytes

Contents

module Inch
  module Language
    module Ruby
      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
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.5.7 lib/inch/language/ruby/roles/missing.rb
inch-0.5.6 lib/inch/language/ruby/roles/missing.rb
inch-0.5.5 lib/inch/language/ruby/roles/missing.rb
inch-0.5.4 lib/inch/language/ruby/roles/missing.rb
inch-0.5.3 lib/inch/language/ruby/roles/missing.rb
inch-0.5.2 lib/inch/language/ruby/roles/missing.rb
inch-0.5.1 lib/inch/language/ruby/roles/missing.rb
inch-0.5.0 lib/inch/language/ruby/roles/missing.rb
inch-0.5.0.rc11 lib/inch/language/ruby/roles/missing.rb
inch-0.5.0.rc10 lib/inch/language/ruby/roles/missing.rb
inch-0.5.0.rc9 lib/inch/language/ruby/roles/missing.rb
inch-0.5.0.rc8 lib/inch/language/ruby/roles/missing.rb
inch-0.5.0.rc7 lib/inch/language/ruby/roles/missing.rb
inch-0.5.0.rc6 lib/inch/language/ruby/roles/missing.rb