Class: FuzzyFileFinder::Directory

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



76
77
78
79
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 76

def initialize(name, is_root=false)
  @name = name
  @is_root = is_root
end

Instance Attribute Details

#nameObject (readonly)

:nodoc:



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

def name
  @name
end

Instance Method Details

#root?Boolean

Returns:

  • (Boolean)


81
82
83
# File 'lib/diakonos/vendor/fuzzy_file_finder.rb', line 81

def root?
  is_root
end