Class: Steep::TypeConstruction::ModuleContext

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/type_construction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_type:, module_type:, implement_name:, current_namespace:, const_env:) ⇒ ModuleContext

Returns a new instance of ModuleContext.



107
108
109
110
111
112
113
114
115
# File 'lib/steep/type_construction.rb', line 107

def initialize(instance_type:, module_type:, implement_name:, current_namespace:, const_env:)
  @instance_type = instance_type
  @module_type = module_type
  @defined_instance_methods = Set.new
  @defined_module_methods = Set.new
  @implement_name = implement_name
  @current_namespace = current_namespace
  @const_env = const_env
end

Instance Attribute Details

#const_envObject (readonly)

Returns the value of attribute const_env.



103
104
105
# File 'lib/steep/type_construction.rb', line 103

def const_env
  @const_env
end

#current_namespaceObject (readonly)

Returns the value of attribute current_namespace.



105
106
107
# File 'lib/steep/type_construction.rb', line 105

def current_namespace
  @current_namespace
end

#defined_instance_methodsObject (readonly)

Returns the value of attribute defined_instance_methods.



101
102
103
# File 'lib/steep/type_construction.rb', line 101

def defined_instance_methods
  @defined_instance_methods
end

#defined_module_methodsObject (readonly)

Returns the value of attribute defined_module_methods.



102
103
104
# File 'lib/steep/type_construction.rb', line 102

def defined_module_methods
  @defined_module_methods
end

#implement_nameObject (readonly)

Returns the value of attribute implement_name.



104
105
106
# File 'lib/steep/type_construction.rb', line 104

def implement_name
  @implement_name
end

#instance_typeObject (readonly)

Returns the value of attribute instance_type.



99
100
101
# File 'lib/steep/type_construction.rb', line 99

def instance_type
  @instance_type
end

#module_typeObject (readonly)

Returns the value of attribute module_type.



100
101
102
# File 'lib/steep/type_construction.rb', line 100

def module_type
  @module_type
end