Class: MailHandler::Receiving::FileList::Filter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mailhandler/receiving/filelist/filter/base.rb

Overview

base filter for files

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files) ⇒ Base

Returns a new instance of Base.



16
17
18
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 16

def initialize(files)
  @files = files
end

Instance Attribute Details

#fast_checkObject

Returns the value of attribute fast_check.



14
15
16
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 14

def fast_check
  @fast_check
end

#filesObject

Returns the value of attribute files.



14
15
16
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 14

def files
  @files
end

Instance Method Details

#getObject



20
21
22
# File 'lib/mailhandler/receiving/filelist/filter/base.rb', line 20

def get
  files.select { |file| ignore_exception { meets_expectation?(file) } }
end