Class: FuzzyFileFinder::FileSystemEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/diakonos/vendor/fuzzy_file_finder.rb

Overview

Used internally to represent a file within the directory tree.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, name) ⇒ FileSystemEntry

Returns a new instance of FileSystemEntry.



61
62
63
64
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 61

def initialize(parent, name)
  @parent = parent
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



59
60
61
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 59

def name
  @name
end

#parentObject (readonly)

:nodoc:



58
59
60
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 58

def parent
  @parent
end

Instance Method Details

#pathObject



66
67
68
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 66

def path
  File.join(parent.name, name)
end