Class: Niman::Library::File
- Inherits:
-
Object
- Object
- Niman::Library::File
- Defined in:
- lib/niman/library/file.rb
Instance Method Summary collapse
Instance Method Details
#description ⇒ Object
19 20 21 |
# File 'lib/niman/library/file.rb', line 19 def description "File #{path}" end |
#errors ⇒ Object
15 16 17 |
# File 'lib/niman/library/file.rb', line 15 def errors ['file path must not be nil and empty'] end |
#valid? ⇒ Boolean
11 12 13 |
# File 'lib/niman/library/file.rb', line 11 def valid? !self.path.nil? && !self.path.empty? end |