Sha256: 679a9fb0ef9e5213e7e64a3c8b55f2e945dc128296a2c5bf80c7dca7809bb767

Contents?: true

Size: 916 Bytes

Versions: 5

Compression:

Stored size: 916 Bytes

Contents

module Inch
  module Evaluation
    module Role
      module MethodParameter
        class WithMention < Base
        end
        class WithoutMention < Missing
          def suggestion
            "Describe the parameter '#{object.name}'"
          end
        end

        class WithType < Base
        end
        class WithoutType < Missing
        end

        class Splat < Base
          def priority
            +1
          end
        end
        class Block < Base
          def priority
            +1
          end
        end

        class WithWrongMention < Missing
          def suggestion
            "The parameter '#{object.name}' seems not to be part of the signature."
          end
          def priority
            +1
          end
        end
        class WithBadName < Base
          # +priority
          def priority
            +1
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inch-0.1.4 lib/inch/evaluation/role/method_parameter.rb
inch-0.1.3 lib/inch/evaluation/role/method_parameter.rb
inch-0.1.2 lib/inch/evaluation/role/method_parameter.rb
inch-0.1.1 lib/inch/evaluation/role/method_parameter.rb
inch-0.1.0 lib/inch/evaluation/role/method_parameter.rb