Class: RubyLsp::Ree::BodyObjectsParser::ConstObject

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_lsp/ruby_lsp_ree/parsing/body_parsers/body_objects_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ ConstObject

Returns a new instance of ConstObject.



7
8
9
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/body_parsers/body_objects_parser.rb', line 7

def initialize(name:)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/ruby_lsp/ruby_lsp_ree/parsing/body_parsers/body_objects_parser.rb', line 5

def name
  @name
end