Exception: Parlour::ParseError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/parlour/parse_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(buffer, range) ⇒ ParseError

Returns a new instance of ParseError.



13
14
15
16
17
# File 'lib/parlour/parse_error.rb', line 13

def initialize(buffer, range)
  super()
  @buffer = buffer
  @range = range
end

Instance Attribute Details

#bufferObject (readonly)

Returns the value of attribute buffer.



8
9
10
# File 'lib/parlour/parse_error.rb', line 8

def buffer
  @buffer
end

#rangeObject (readonly)

Returns the value of attribute range.



11
12
13
# File 'lib/parlour/parse_error.rb', line 11

def range
  @range
end