Sha256: 2ea56b8c148195a46418f4f5f68328f3824d95e140021f4db19550cb0967a7a1
Contents?: true
Size: 331 Bytes
Versions: 5
Compression:
Stored size: 331 Bytes
Contents
class Pathname def descendant_files out = children.select { |p| p.html? && !p.hidden? } children.select { |p| p.directory? && !p.hidden? }.each do |p| out += p.descendant_files end out end def html? file? && %w(.html).include?(extname) end def hidden? basename.to_s[0..0] == "." end end
Version data entries
5 entries across 5 versions & 1 rubygems