Class: Leftovers::FileList
- Inherits:
-
FastIgnore
- Object
- FastIgnore
- Leftovers::FileList
- Defined in:
- lib/leftovers/file_list.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(**arguments) ⇒ FileList
constructor
A new instance of FileList.
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
#each ⇒ Object
16 17 18 |
# File 'lib/leftovers/file_list.rb', line 16 def each super { |file| yield(File.new(file)) } end |