Sha256: 9923952b5125f1ff05b12f544a658aaa4a0f38337003ea2efcbc21e5192503a3

Contents?: true

Size: 775 Bytes

Versions: 4

Compression:

Stored size: 775 Bytes

Contents

module Inch
  module Evaluation
    module Proxy
      # a namespace object can have methods and other namespace objects
      # inside itself (e.g. classes and modules)
      class NamespaceObject < Base
        protected

        def relevant_roles
          relevant_base_roles.merge(relevant_namespace_roles)
        end

        def relevant_namespace_roles
          {
            Role::Namespace::Core => nil,
            Role::Namespace::WithManyAttributes => nil,
            Role::Namespace::WithoutChildren => nil,
            Role::Namespace::WithChildren => nil,
            Role::Namespace::WithManyChildren => nil,
            Role::Namespace::WithoutMethods => nil,
            Role::Namespace::Pure => nil
          }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inch-0.4.10 lib/inch/evaluation/proxy/namespace_object.rb
inch-0.4.9 lib/inch/evaluation/proxy/namespace_object.rb
inch-0.4.8 lib/inch/evaluation/proxy/namespace_object.rb
inch-0.4.7 lib/inch/evaluation/proxy/namespace_object.rb