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.



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

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.



224
225
226
# File 'lib/rundoc/peg_parser.rb', line 224

def line_and_column
  @line_and_column
end