Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
JSON::GeneratorError#detailed_message
(?highlight: bool?, **untyped ignored) -> ::String
detailed_message(...)
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/json/lib/json/common.rb, line 202
def detailed_message(...)
# Exception#detailed_message doesn't exist until Ruby 3.2
super_message = defined?(super) ? super : message
if @invalid_object.nil?
super_message
else
"#{super_message}\nInvalid object: #{@invalid_object.inspect}"
end
end
No documentation available