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



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

def initialize(file = nil)
  @file = file
  super("No data found in #{file}")
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



5
6
7
# File 'lib/self_data/errors.rb', line 5

def file
  @file
end