Class: Exegesis::Directory

Inherits:
Object
  • Object
show all
Includes:
FileSystemEntity
Defined in:
lib/exegesis/directory.rb

Direct Known Subclasses

BaseDirectory

Instance Method Summary collapse

Instance Method Details

#find_directory(dirname) ⇒ Object



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

def find_directory(dirname)
  directories.select { |d| d.name == dirname || d.name + '/' == dirname }.first
end

#find_file(filename) ⇒ Object



25
26
27
# File 'lib/exegesis/directory.rb', line 25

def find_file(filename)
  files.select { |f| f.name == filename }.first
end