Class: RubyIndexer::Entry::InstanceVariable

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

Overview

Represents an instance variable e.g.: @a = 1

Instance Attribute Summary collapse

Attributes inherited from RubyIndexer::Entry

#comments, #file_path, #location, #name, #visibility

Instance Method Summary collapse

Methods inherited from RubyIndexer::Entry

#file_name, #private?, #protected?, #public?

Constructor Details

#initialize(name, file_path, location, comments, owner) ⇒ InstanceVariable

Returns a new instance of InstanceVariable.



484
485
486
487
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 484

def initialize(name, file_path, location, comments, owner)
  super(name, file_path, location, comments)
  @owner = owner
end

Instance Attribute Details

#ownerObject (readonly)

Returns the value of attribute owner.



473
474
475
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 473

def owner
  @owner
end