Class: FuzzyFileFinder::FileSystemEntry
- Defined in:
- lib/diakonos/vendor/fuzzy_file_finder.rb
Overview
Used internally to represent a file within the directory tree.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(parent, name) ⇒ FileSystemEntry
constructor
A new instance of FileSystemEntry.
- #path ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
59 60 61 |
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 59 def name @name end |
#parent ⇒ Object (readonly)
:nodoc:
58 59 60 |
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 58 def parent @parent end |
Instance Method Details
#path ⇒ Object
66 67 68 |
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 66 def path File.join(parent.name, name) end |