Class: FuzzyFileFinder::Directory
- Inherits:
-
Object
- Object
- FuzzyFileFinder::Directory
- Defined in:
- lib/ver/vendor/fuzzy_file_finder.rb
Overview
Used internally to represent a subdirectory within the directory tree.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(name, is_root = false) ⇒ Directory
constructor
A new instance of Directory.
- #root? ⇒ Boolean
Constructor Details
#initialize(name, is_root = false) ⇒ Directory
Returns a new instance of Directory.
84 85 86 87 |
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 84 def initialize(name, is_root=false) @name = name @is_root = is_root end |
Instance Attribute Details
#name ⇒ Object (readonly)
:nodoc:
82 83 84 |
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 82 def name @name end |
Instance Method Details
#root? ⇒ Boolean
89 90 91 |
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 89 def root? is_root end |