Class: RubyLsp::TypeInferrer::Type
- Inherits:
-
Object
- Object
- RubyLsp::TypeInferrer::Type
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_lsp/type_inferrer.rb
Overview
A known type
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Type
constructor
A new instance of Type.
Constructor Details
#initialize(name) ⇒ Type
Returns a new instance of Type.
113 114 115 |
# File 'lib/ruby_lsp/type_inferrer.rb', line 113 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
110 111 112 |
# File 'lib/ruby_lsp/type_inferrer.rb', line 110 def name @name end |