Class: Steep::TypeInference::TypeEnvBuilder::Command::RBSBase

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

Direct Known Subclasses

ImportGlobalDeclarations

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(factory) ⇒ RBSBase

Returns a new instance of RBSBase.



18
19
20
21
# File 'lib/steep/type_inference/type_env_builder.rb', line 18

def initialize(factory)
  @factory = factory
  @environment = factory.env
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



16
17
18
# File 'lib/steep/type_inference/type_env_builder.rb', line 16

def environment
  @environment
end

#factoryObject (readonly)

Returns the value of attribute factory.



14
15
16
# File 'lib/steep/type_inference/type_env_builder.rb', line 14

def factory
  @factory
end