Sha256: 4c5b671d641143ab76b88ab0f3801b367a3ff192db81b07903580181b607e69c

Contents?: true

Size: 1.41 KB

Versions: 32

Compression:

Stored size: 1.41 KB

Contents

module Inch
  module Language
    module Ruby
      module Evaluation
        module Role
          # Roles assigned to class variables
          module ClassVariable
            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?
              priority      -1
            end
            class Private < Object::Private
              applicable_if :private?
              priority      -3
            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
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
inch-0.7.1 lib/inch/language/ruby/roles/class_variable.rb
inch-0.7.0 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.4 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.3 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.2 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.1 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.0 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.0.rc6 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.0.rc5 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.0.rc4 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.0.rc3 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.0.rc2 lib/inch/language/ruby/roles/class_variable.rb
inch-0.6.0.rc1 lib/inch/language/ruby/roles/class_variable.rb
inch-0.5.10 lib/inch/language/ruby/roles/class_variable.rb
inch-0.5.9 lib/inch/language/ruby/roles/class_variable.rb
inch-0.5.8 lib/inch/language/ruby/roles/class_variable.rb
inch-0.5.7 lib/inch/language/ruby/roles/class_variable.rb
inch-0.5.6 lib/inch/language/ruby/roles/class_variable.rb
inch-0.5.5 lib/inch/language/ruby/roles/class_variable.rb
inch-0.5.4 lib/inch/language/ruby/roles/class_variable.rb