Sha256: ad734da35f9d1fa0023aa9f8cbbd46ceb093e1595ca99b52b3019c9d04f78a5f
Contents?: true
Size: 674 Bytes
Versions: 3
Compression:
Stored size: 674 Bytes
Contents
module Steep module Drivers module Utils module EachSignature def each_file_in_path(suffix, path) if path.file? yield path end if path.directory? each_file_in_dir(suffix, path) do |file| yield file end end end def each_file_in_dir(suffix, path, &block) path.children.each do |child| if child.directory? each_file_in_dir(suffix, child, &block) end if child.file? && suffix == child.extname yield child end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
steep-0.11.1 | lib/steep/drivers/utils/each_signature.rb |
steep-0.11.0 | lib/steep/drivers/utils/each_signature.rb |
steep-0.10.0 | lib/steep/drivers/utils/each_signature.rb |