Class: RubyLsp::TypeInferrer::Type
- Inherits:
-
Object
- Object
- RubyLsp::TypeInferrer::Type
- Defined in:
- lib/ruby_lsp/type_inferrer.rb
Overview
A known type
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#attached ⇒ Object
Returns the attached version of this type by removing the ‘<Class:…>` part from its name : -> Type.
-
#initialize(name) ⇒ Type
constructor
: (String name) -> void.
Constructor Details
#initialize(name) ⇒ Type
: (String name) -> void
173 174 175 |
# File 'lib/ruby_lsp/type_inferrer.rb', line 173 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
: String
170 171 172 |
# File 'lib/ruby_lsp/type_inferrer.rb', line 170 def name @name end |