Class: FuzzyFileFinder::Directory

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

Overview

Used internally to represent a subdirectory within the directory tree.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

:nodoc:



82
83
84
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 82

def name
  @name
end

Instance Method Details

#root?Boolean

Returns:

  • (Boolean)


89
90
91
# File 'lib/ver/vendor/fuzzy_file_finder.rb', line 89

def root?
  is_root
end