Exception: Drntest::InputError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/drntest/input-error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, line_number, content, message) ⇒ InputError

Returns a new instance of InputError.



19
20
21
22
23
24
# File 'lib/drntest/input-error.rb', line 19

def initialize(file, line_number, content, message)
  @file = file
  @line_number = line_number
  @content = content
  super("#{message}: #{@file}:#{@line_number}: #{@content}")
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



18
19
20
# File 'lib/drntest/input-error.rb', line 18

def content
  @content
end

#fileObject (readonly)

Returns the value of attribute file.



18
19
20
# File 'lib/drntest/input-error.rb', line 18

def file
  @file
end

#line_numberObject (readonly)

Returns the value of attribute line_number.



18
19
20
# File 'lib/drntest/input-error.rb', line 18

def line_number
  @line_number
end