class MightyJSON::IllegalTypeError

Attributes

type[R]

Public Class Methods

new(type:) click to toggle source
# File lib/mighty_json/errors.rb, line 23
def initialize(type:)
  @type = type
end

Public Instance Methods

message()
Alias for: to_s
to_s() click to toggle source
# File lib/mighty_json/errors.rb, line 27
def to_s
  "#{type} can not be put on toplevel"
end
Also aliased as: message