class Dir

Constants

SPECIAL_DIRS
SUPER_DIR

Public Instance Methods

each!() { |e| ... } → self click to toggle source

Call block for all entries except “.” and “..”.

# File lib/rbfind.rb, line 21
def each!
  s = SPECIAL_DIRS.dup
  each { |f|
    next if s.delete f
    yield f
  }
end
entries!() click to toggle source
# File lib/rbfind.rb, line 34
                             def entries!
  entries - SPECIAL_DIRS
end