class Rugsweep::Filter

Public Class Methods

new(path, keepfiles) click to toggle source
# File lib/rugsweep/sweeper.rb, line 78
def initialize(path, keepfiles)
  @path = path
  @keepfiles = keepfiles
end

Public Instance Methods

dotfile?() click to toggle source
# File lib/rugsweep/sweeper.rb, line 83
def dotfile?
  filename.start_with? "."
end
ok?() click to toggle source
# File lib/rugsweep/sweeper.rb, line 87
def ok?
  @keepfiles.include? filename
end

Private Instance Methods

filename() click to toggle source
# File lib/rugsweep/sweeper.rb, line 93
def filename
  @path.basename.to_s
end