class PathMapper::Node::Dir::Grep::FilesIterator

Attributes

files[RW]

Public Class Methods

new(files=[], mapper) click to toggle source
# File lib/path_mapper/node/dir/grep.rb, line 24
def initialize(files=[], mapper)
  self.files = files
  @parent_mapper = mapper
end

Public Instance Methods

each() { |f| ... } click to toggle source
# File lib/path_mapper/node/dir/grep.rb, line 29
def each
  @files.each do |f|
    yield @parent_mapper.f(f)
  end
end