Class: TermUtils::FF::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/term_utils/ff/entry.rb

Overview

Represents an Entry of a Query result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEntry



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

#indexInteger



24
25
26
# File 'lib/term_utils/ff/entry.rb', line 24

def index
  @index
end

#nameString



26
27
28
# File 'lib/term_utils/ff/entry.rb', line 26

def name
  @name
end

#pathString



30
31
32
# File 'lib/term_utils/ff/entry.rb', line 30

def path
  @path
end

#relative_path_compsArray<String>



28
29
30
# File 'lib/term_utils/ff/entry.rb', line 28

def relative_path_comps
  @relative_path_comps
end

Instance Method Details

#depthInteger



40
41
42
# File 'lib/term_utils/ff/entry.rb', line 40

def depth
  @relative_path_comps.length
end