Class: RubyIndexer::Entry::ClassVariable

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

Overview

Represents a class variable e.g.: @@a = 1

Instance Attribute Summary collapse

Attributes inherited from RubyIndexer::Entry

#configuration, #location, #name, #uri, #visibility

Instance Method Summary collapse

Methods inherited from RubyIndexer::Entry

#comments, #file_name, #file_path, #private?, #protected?, #public?

Constructor Details

#initialize(configuration, name, uri, location, comments, owner) ⇒ ClassVariable

: (Configuration configuration, String name, URI::Generic uri, Location location, String? comments, Entry::Namespace? owner) -> void



411
412
413
414
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 411

def initialize(configuration, name, uri, location, comments, owner) # rubocop:disable Metrics/ParameterLists
  super(configuration, name, uri, location, comments)
  @owner = owner
end

Instance Attribute Details

#ownerObject (readonly)

: Entry::Namespace?



408
409
410
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 408

def owner
  @owner
end