Exception: Drntest::InputError
- Inherits:
-
StandardError
- Object
- StandardError
- Drntest::InputError
- Defined in:
- lib/drntest/input-error.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
-
#initialize(file, line_number, content, message) ⇒ InputError
constructor
A new instance of InputError.
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, ) @file = file @line_number = line_number @content = content super("#{}: #{@file}:#{@line_number}: #{@content}") end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
18 19 20 |
# File 'lib/drntest/input-error.rb', line 18 def content @content end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
18 19 20 |
# File 'lib/drntest/input-error.rb', line 18 def file @file end |
#line_number ⇒ Object (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 |