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.



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

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.



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

def culprit
  @culprit
end