Class: RubyIndexer::Entry::SingletonClass

Inherits:
Class show all
Defined in:
lib/ruby_indexer/lib/ruby_indexer/entry.rb

Instance Attribute Summary

Attributes inherited from Class

#parent_class

Attributes inherited from Namespace

#name_location, #nesting

Attributes inherited from RubyIndexer::Entry

#location, #name, #uri, #visibility

Instance Method Summary collapse

Methods inherited from Class

#ancestor_hash, #initialize

Methods inherited from Namespace

#ancestor_hash, #initialize, #mixin_operation_module_names, #mixin_operations

Methods inherited from RubyIndexer::Entry

#comments, #file_name, #file_path, #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

: (Location location, Location name_location, String? comments) -> void



178
179
180
181
182
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 178

def update_singleton_information(location, name_location, comments)
  @location = location
  @name_location = name_location
  (@comments ||= +"") << comments if comments
end