Class: SelfData::NoDataFound

Inherits:
Error
  • Object
show all
Defined in:
lib/self_data/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject (readonly)

Returns the value of attribute file.



7
8
9
# File 'lib/self_data/errors.rb', line 7

def file
  @file
end