Class: FuzzyFileFinder::FileSystemEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/ver/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.



69
70
71
72
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 69

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



67
68
69
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 67

def name
  @name
end

#parentObject (readonly)

:nodoc:



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

def parent
  @parent
end

Instance Method Details

#pathObject



74
75
76
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 74

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