Exception: Dirwatch::FileEmptyError
- Includes:
- UserFriendlyError
- Defined in:
- lib/dirwatch/errors.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(filename, msg = nil) ⇒ FileEmptyError
constructor
A new instance of FileEmptyError.
Methods included from UserFriendlyError
Constructor Details
#initialize(filename, msg = nil) ⇒ FileEmptyError
Returns a new instance of FileEmptyError.
22 23 24 25 |
# File 'lib/dirwatch/errors.rb', line 22 def initialize filename, msg = nil super msg || "The file #{filename.inspect} is empty" @filename = filename end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
21 22 23 |
# File 'lib/dirwatch/errors.rb', line 21 def filename @filename end |