Exception: NestedText::Errors::DumpError

Inherits:
InternalError show all
Defined in:
lib/nestedtext/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(culprit, message) ⇒ DumpError

Returns a new instance of DumpError.



202
203
204
205
206
207
# File 'lib/nestedtext/errors.rb', line 202

def initialize(culprit, message)
  # Note, both line and column number are 0-indexed.
  # But for human display we make them 1-indexed.
  @culprit = culprit
  super(message)
end

Instance Attribute Details

#culpritObject (readonly)

Returns the value of attribute culprit.



200
201
202
# File 'lib/nestedtext/errors.rb', line 200

def culprit
  @culprit
end