Exception: AnyData::NoDataError
- Inherits:
-
Exception
- Object
- Exception
- AnyData::NoDataError
- Defined in:
- lib/any_data.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(file) ⇒ NoDataError
constructor
A new instance of NoDataError.
Constructor Details
#initialize(file) ⇒ NoDataError
Returns a new instance of NoDataError.
6 7 8 9 |
# File 'lib/any_data.rb', line 6 def initialize(file) @file = file super("No data (__END__) found in file: #{file}") end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
5 6 7 |
# File 'lib/any_data.rb', line 5 def file @file end |