Class: FuzzyFileFinder::FileSystemEntry
- Inherits:
-
Object
- Object
- FuzzyFileFinder::FileSystemEntry
- Defined in:
- lib/dotfiles/vim/ruby/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.
68 69 70 71 |
# File 'lib/dotfiles/vim/ruby/fuzzy_file_finder.rb', line 68 def initialize(parent, name) @parent = parent @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
66 67 68 |
# File 'lib/dotfiles/vim/ruby/fuzzy_file_finder.rb', line 66 def name @name end |
#parent ⇒ Object (readonly)
:nodoc:
65 66 67 |
# File 'lib/dotfiles/vim/ruby/fuzzy_file_finder.rb', line 65 def parent @parent end |
Instance Method Details
#path ⇒ Object
73 74 75 |
# File 'lib/dotfiles/vim/ruby/fuzzy_file_finder.rb', line 73 def path File.join(parent.name, name) end |