Class: RubyIndexer::Entry::InstanceVariable
- Inherits:
-
RubyIndexer::Entry
- Object
- RubyIndexer::Entry
- RubyIndexer::Entry::InstanceVariable
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/entry.rb
Overview
Represents an instance variable e.g.: @a = 1
Instance Attribute Summary collapse
-
#owner ⇒ Object
readonly
: Entry::Namespace?.
Attributes inherited from RubyIndexer::Entry
#location, #name, #uri, #visibility
Instance Method Summary collapse
-
#initialize(name, uri, location, comments, owner) ⇒ InstanceVariable
constructor
: (String name, URI::Generic uri, Location location, String? comments, Entry::Namespace? owner) -> void.
Methods inherited from RubyIndexer::Entry
#comments, #file_name, #file_path, #private?, #protected?, #public?
Constructor Details
#initialize(name, uri, location, comments, owner) ⇒ InstanceVariable
: (String name, URI::Generic uri, Location location, String? comments, Entry::Namespace? owner) -> void
418 419 420 421 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 418 def initialize(name, uri, location, comments, owner) super(name, uri, location, comments) @owner = owner end |
Instance Attribute Details
#owner ⇒ Object (readonly)
: Entry::Namespace?
415 416 417 |
# File 'lib/ruby_indexer/lib/ruby_indexer/entry.rb', line 415 def owner @owner end |