lib/rulebow/watchlist.rb
# Initialize new instance of Ignore.
#
# Returns nothing.
Initialize new instance of Ignore.
Returns nothing.
Initialize new instance of Ignore . Returns nothing .
def read_digest
      dig = {}
      list = filter(Dir.glob('**/*', File::FNM_PATHNAME))
      list.each do |path|
        if File.directory?(path)
        elsif File.exist?(path)
          dig[path] = checksum(path)
        end
      end
      dig
    end
def read_digest dig = { } list = filter ( Dir . glob ( '**/*' , File :: FNM_PATHNAME ) ) list . each do | path | if File . directory? ( path ) elsif File . exist? ( path ) dig [ path ] = checksum ( path ) end end dig end
Initialize new instance of Ignore.
Initialize new instance of Ignore .
# TODO: how to handle directories as a whole?