Sha256: 9fd829b6e55a5509184d0fcbdd328a8361f716c1e2bb8e8faf5d43d0aacbb1e0

Contents?: true

Size: 1.24 KB

Versions: 40

Compression:

Stored size: 1.24 KB

Contents

module Inch
  module Evaluation
    module Role
      # Roles assigned to constants
      module Constant
        class WithDoc < Object::WithDoc
          applicable_if :has_doc?
        end
        class WithoutDoc < Object::WithoutDoc
          applicable_unless :has_doc?
        end

        class TaggedAsNodoc < Object::TaggedAsNodoc
          applicable_if :nodoc?
        end
        class InRoot < Object::InRoot
          applicable_if :in_root?
        end

        class Public < Object::Public
          applicable_if :public?

          def priority
            -1
          end
        end
        class Private < Object::Private
          applicable_if :private?

          def priority
            -3
          end
        end

        class WithCodeExample < Object::WithCodeExample
          applicable_if do |o|
            o.has_code_example? && !o.has_multiple_code_examples?
          end
        end

        class WithMultipleCodeExamples < Object::WithMultipleCodeExamples
          applicable_if :has_multiple_code_examples?
        end

        class WithoutCodeExample < Object::WithoutCodeExample
          applicable_unless :has_code_example?

          def suggestion
            nil
          end
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
inch-0.4.10 lib/inch/evaluation/role/constant.rb
inch-0.4.9 lib/inch/evaluation/role/constant.rb
inch-0.4.8 lib/inch/evaluation/role/constant.rb
inch-0.4.7 lib/inch/evaluation/role/constant.rb
inch-0.5.0.rc3 lib/inch/evaluation/role/constant.rb
inch-0.5.0.rc2 lib/inch/evaluation/role/constant.rb
inch-0.5.0.rc1 lib/inch/evaluation/role/constant.rb
inch-0.4.6 lib/inch/evaluation/role/constant.rb
inch-0.4.5 lib/inch/evaluation/role/constant.rb
inch-0.4.4 lib/inch/evaluation/role/constant.rb
inch-0.4.4.rc4 lib/inch/evaluation/role/constant.rb
inch-0.4.4.rc3 lib/inch/evaluation/role/constant.rb
inch-0.4.4.rc2 lib/inch/evaluation/role/constant.rb
inch-0.4.4.rc1 lib/inch/evaluation/role/constant.rb
inch-0.4.3 lib/inch/evaluation/role/constant.rb
inch-0.4.3.rc2 lib/inch/evaluation/role/constant.rb
inch-0.4.3.rc1 lib/inch/evaluation/role/constant.rb
inch-0.4.2 lib/inch/evaluation/role/constant.rb
inch-0.4.1 lib/inch/evaluation/role/constant.rb
inch-0.4.0 lib/inch/evaluation/role/constant.rb