Exception: NestedText::Errors::DumpError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(culprit, message) ⇒ DumpError

Returns a new instance of DumpError.



198
199
200
201
202
203
# File 'lib/nestedtext/errors_internal.rb', line 198

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.



196
197
198
# File 'lib/nestedtext/errors_internal.rb', line 196

def culprit
  @culprit
end