Sha256: e677a5f4242086d063460b08d70c41b47836401f7b16ace3c1ad1daf3adee479
Contents?: true
Size: 561 Bytes
Versions: 16
Compression:
Stored size: 561 Bytes
Contents
module CC module Analyzer class PathEntries def initialize(initial_path) @initial_path = initial_path.gsub(%r{/$}, "") end def entries if File.directory?(initial_path) all_entries.reject do |path| path.end_with?("/.") || path.start_with?(".git/") end else initial_path end end private attr_reader :initial_path def all_entries Dir.glob("#{initial_path}/**/*", File::FNM_DOTMATCH).push(initial_path) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems