Class: TermUtils::FF::Entry
- Inherits:
-
Object
- Object
- TermUtils::FF::Entry
- Defined in:
- lib/term_utils/ff/entry.rb
Overview
Represents an Entry of a Query result.
Instance Attribute Summary collapse
Instance Method Summary collapse
- #depth ⇒ Integer
-
#initialize ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize ⇒ Entry
Returns a new instance of Entry.
32 33 34 35 36 37 |
# File 'lib/term_utils/ff/entry.rb', line 32 def initialize @index = nil @name = nil @relative_path_comps = nil @path = nil end |
Instance Attribute Details
#index ⇒ Integer
24 25 26 |
# File 'lib/term_utils/ff/entry.rb', line 24 def index @index end |
#name ⇒ String
26 27 28 |
# File 'lib/term_utils/ff/entry.rb', line 26 def name @name end |
#path ⇒ String
30 31 32 |
# File 'lib/term_utils/ff/entry.rb', line 30 def path @path end |
#relative_path_comps ⇒ Array<String>
28 29 30 |
# File 'lib/term_utils/ff/entry.rb', line 28 def relative_path_comps @relative_path_comps end |
Instance Method Details
#depth ⇒ Integer
40 41 42 |
# File 'lib/term_utils/ff/entry.rb', line 40 def depth @relative_path_comps.length end |