Class: FuzzyFileFinder::Directory

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



83
84
85
86
# File 'lib/dotfiles/vim/ruby/fuzzy_file_finder.rb', line 83

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

Instance Attribute Details

#nameObject (readonly)

:nodoc:



81
82
83
# File 'lib/dotfiles/vim/ruby/fuzzy_file_finder.rb', line 81

def name
  @name
end

Instance Method Details

#root?Boolean

Returns:

  • (Boolean)


88
89
90
# File 'lib/dotfiles/vim/ruby/fuzzy_file_finder.rb', line 88

def root?
  is_root
end