Class: Gesund::Checks::File
- Inherits:
-
Object
- Object
- Gesund::Checks::File
- Includes:
- Gesund::Check
- Defined in:
- lib/gesund/checks/file.rb
Instance Attribute Summary
Attributes included from Gesund::Check
Instance Method Summary collapse
-
#initialize(filename) ⇒ File
constructor
A new instance of File.
Methods included from Gesund::Check
Constructor Details
#initialize(filename) ⇒ File
Returns a new instance of File.
4 5 6 7 |
# File 'lib/gesund/checks/file.rb', line 4 def initialize(filename) self.success = ::File.file? filename self. = "File #{filename} is#{@success ? '' : ' not'} a file" end |