Class: Dir

Inherits:
Object show all
Defined in:
lib/qualitysmith_extensions/dir/each_child.rb

Instance Method Summary collapse

Instance Method Details

#each_childObject

Much like each(), except the “.” and “..” special files are ignored.



12
13
14
15
16
# File 'lib/qualitysmith_extensions/dir/each_child.rb', line 12

def each_child
  each do |file|
    yield file if file != "." and file != ".."
  end
end