Class: SelfData::NoDataFound
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(file = nil) ⇒ NoDataFound
constructor
A new instance of NoDataFound.
Constructor Details
#initialize(file = nil) ⇒ NoDataFound
Returns a new instance of NoDataFound.
9 10 11 12 |
# File 'lib/self_data/errors.rb', line 9 def initialize(file = nil) @file = file super("No data found in #{file}") end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
7 8 9 |
# File 'lib/self_data/errors.rb', line 7 def file @file end |