Exception: Natsuzora::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Natsuzora::Error
- Defined in:
- lib/natsuzora/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(message, line: nil, column: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, line: nil, column: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/natsuzora/errors.rb', line 7 def initialize(, line: nil, column: nil) @line = line @column = column super(()) end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
5 6 7 |
# File 'lib/natsuzora/errors.rb', line 5 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
5 6 7 |
# File 'lib/natsuzora/errors.rb', line 5 def line @line end |