Exception: Rundoc::PegTransformer::TransformError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rundoc/peg_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, line_and_column:) ⇒ TransformError

Returns a new instance of TransformError.



227
228
229
230
# File 'lib/rundoc/peg_parser.rb', line 227

def initialize(message: , line_and_column:)
  @line_and_column = line_and_column || [1, 1]
  super message
end

Instance Attribute Details

#line_and_columnObject (readonly)

Returns the value of attribute line_and_column.



226
227
228
# File 'lib/rundoc/peg_parser.rb', line 226

def line_and_column
  @line_and_column
end