Class: Rack::SecureUpload::Scanner::Base
- Inherits:
-
Object
- Object
- Rack::SecureUpload::Scanner::Base
- Defined in:
- lib/rack/secure_upload/scanner/base.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #scan(path) ⇒ Object
- #setup ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
10 11 12 13 |
# File 'lib/rack/secure_upload/scanner/base.rb', line 10 def initialize( = {}) raise RuntimeError, 'Abstract class can not be instantiated' if self.class == Rack::SecureUpload::Scanner::Base @options = .merge() end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
8 9 10 |
# File 'lib/rack/secure_upload/scanner/base.rb', line 8 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/rack/secure_upload/scanner/base.rb', line 8 def @options end |
Instance Method Details
#scan(path) ⇒ Object
18 19 20 |
# File 'lib/rack/secure_upload/scanner/base.rb', line 18 def scan(path) # Scan the file here end |
#setup ⇒ Object
15 16 |
# File 'lib/rack/secure_upload/scanner/base.rb', line 15 def setup end |