Class: RubyIndexer::Entry::SingletonClass
- Inherits:
-
Class
- Object
- RubyIndexer::Entry
- Namespace
- Class
- RubyIndexer::Entry::SingletonClass
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/entry.rb
Instance Attribute Summary
Attributes inherited from Class
Attributes inherited from Namespace
Attributes inherited from RubyIndexer::Entry
#comments, #file_path, #location, #name, #visibility
Instance Method Summary collapse
Methods inherited from Class
Methods inherited from Namespace
#ancestor_hash, #initialize, #mixin_operation_module_names, #mixin_operations
Methods inherited from RubyIndexer::Entry
#file_name, #initialize, #private?, #protected?, #public?
Constructor Details
This class inherits a constructor from RubyIndexer::Entry::Class
Instance Method Details
#update_singleton_information(location, name_location, comments) ⇒ Object
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 199 def update_singleton_information(location, name_location, comments) # Create a new RubyIndexer::Location object from the Prism location @location = Location.new( location.start_line, location.end_line, location.start_column, location.end_column, ) @name_location = Location.new( name_location.start_line, name_location.end_line, name_location.start_column, name_location.end_column, ) @comments.concat(comments) end |