Class: Leftovers::FileList

Inherits:
FastIgnore
  • Object
show all
Defined in:
lib/leftovers/file_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(**arguments) ⇒ FileList

Returns a new instance of FileList.



7
8
9
10
11
12
13
14
# File 'lib/leftovers/file_list.rb', line 7

def initialize(**arguments)
  super(
    ignore_rules: ::Leftovers.config.exclude_paths,
    include_rules: ::Leftovers.config.include_paths,
    root: ::Leftovers.pwd,
    **arguments
  )
end

Instance Method Details

#eachObject



16
17
18
# File 'lib/leftovers/file_list.rb', line 16

def each
  super { |file| yield(File.new(file)) }
end