Class: Filechecker
- Inherits:
-
Object
- Object
- Filechecker
- Defined in:
- lib/simple-chmod/filechecker.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ Filechecker
constructor
A new instance of Filechecker.
- #result ⇒ Object
Constructor Details
#initialize(file) ⇒ Filechecker
Returns a new instance of Filechecker.
5 6 7 |
# File 'lib/simple-chmod/filechecker.rb', line 5 def initialize(file) @file = file end |
Instance Method Details
#result ⇒ Object
9 10 11 |
# File 'lib/simple-chmod/filechecker.rb', line 9 def result File.exist?(@file) end |