class NestedText::Errors::DumpUnsupportedTypeError

Public Class Methods

new(obj, culprit) click to toggle source
Calls superclass method NestedText::Errors::DumpError::new
# File lib/nestedtext/errors_internal.rb, line 229
def initialize(obj, culprit)
  # Official-tests kludge; translate to Python names
  class_name = obj.is_a?(Integer) ? 'int' : obj.class.name
  super(culprit, "unsupported type (#{class_name}).")
end