Class: Gitenv::FileEnumerator

Inherits:
Object
  • Object
show all
Defined in:
lib/gitenv/enumerator/enumerator.rb

Direct Known Subclasses

AllFiles, OneFile

Instance Method Summary collapse

Instance Method Details

#each(path, &block) ⇒ Object



10
11
12
# File 'lib/gitenv/enumerator/enumerator.rb', line 10

def each path, &block
  files(path).each{ |f| block.call f }
end

#files(path) ⇒ Object



6
7
8
# File 'lib/gitenv/enumerator/enumerator.rb', line 6

def files path
  raise '#files not implemented'
end