Class: Exegesis::BaseDirectory

Inherits:
Directory show all
Defined in:
lib/exegesis/base_directory.rb

Instance Method Summary collapse

Constructor Details

#initialize(root, searcher = FileSearcher) ⇒ BaseDirectory

Returns a new instance of BaseDirectory.

Parameters:

  • root (String)

    the root path of the project

  • searcher (FileSearcher) (defaults to: FileSearcher)

    an object used to search for files in a given directory



21
22
23
# File 'lib/exegesis/base_directory.rb', line 21

def initialize(root, searcher = FileSearcher)
  super(nil, root, searcher)
end

Instance Method Details

#pathObject Also known as: root

The path to the root of the project



26
27
28
# File 'lib/exegesis/base_directory.rb', line 26

def path
  name
end