Class: RubyIndexer::Index::Entry
- Inherits:
-
Object
- Object
- RubyIndexer::Index::Entry
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_indexer/lib/ruby_indexer/index.rb
Defined Under Namespace
Classes: Class, Constant, Module, Namespace
Instance Attribute Summary collapse
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #file_name ⇒ Object
-
#initialize(name, file_path, location, comments) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(name, file_path, location, comments) ⇒ Entry
Returns a new instance of Entry.
118 119 120 121 122 123 |
# File 'lib/ruby_indexer/lib/ruby_indexer/index.rb', line 118 def initialize(name, file_path, location, comments) @name = name @file_path = file_path @location = location @comments = comments end |
Instance Attribute Details
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
115 116 117 |
# File 'lib/ruby_indexer/lib/ruby_indexer/index.rb', line 115 def comments @comments end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
109 110 111 |
# File 'lib/ruby_indexer/lib/ruby_indexer/index.rb', line 109 def file_path @file_path end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
112 113 114 |
# File 'lib/ruby_indexer/lib/ruby_indexer/index.rb', line 112 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
106 107 108 |
# File 'lib/ruby_indexer/lib/ruby_indexer/index.rb', line 106 def name @name end |
Instance Method Details
#file_name ⇒ Object
126 127 128 |
# File 'lib/ruby_indexer/lib/ruby_indexer/index.rb', line 126 def file_name File.basename(@file_path) end |