Class: RubyLsp::Ree::LocalVariablesParser::LocalVariable
- Inherits:
-
Object
- Object
- RubyLsp::Ree::LocalVariablesParser::LocalVariable
- Defined in:
- lib/ruby_lsp/ruby_lsp_ree/parsing/body_parsers/local_variables_parser.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:) ⇒ LocalVariable
constructor
A new instance of LocalVariable.
Constructor Details
#initialize(name:) ⇒ LocalVariable
Returns a new instance of LocalVariable.
9 10 11 |
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/body_parsers/local_variables_parser.rb', line 9 def initialize(name:) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/body_parsers/local_variables_parser.rb', line 7 def name @name end |