Exception: AnyData::NoDataError

Inherits:
Exception
  • Object
show all
Defined in:
lib/any_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fileObject

Returns the value of attribute file.



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

def file
  @file
end