diff options
author | Jean Boussier <[email protected]> | 2024-10-24 11:42:02 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-26 18:44:15 +0900 |
commit | 1045b9f820b6892fb7b5b0a19a8fc959f20a8762 (patch) | |
tree | 0b831e29e7f168ea56784f49280e2a17c42f6f2f /ext/json/lib/json.rb | |
parent | bfdf02ea7290d1d76e457ffbb15cfef5e64bf547 (diff) |
[ruby/json] Modernize heredocs
https://github.com/ruby/json/commit/fb25e94aea
Diffstat (limited to 'ext/json/lib/json.rb')
-rw-r--r-- | ext/json/lib/json.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/json/lib/json.rb b/ext/json/lib/json.rb index 8b1673d53f..c28e853e13 100644 --- a/ext/json/lib/json.rb +++ b/ext/json/lib/json.rb @@ -378,13 +378,13 @@ require 'json/common' # json1 = JSON.generate(ruby) # ruby1 = JSON.parse(json1, create_additions: true) # # Make a nice display. -# display = <<EOT -# Generated JSON: -# Without addition: #{json0} (#{json0.class}) -# With addition: #{json1} (#{json1.class}) -# Parsed JSON: -# Without addition: #{ruby0.inspect} (#{ruby0.class}) -# With addition: #{ruby1.inspect} (#{ruby1.class}) +# display = <<~EOT +# Generated JSON: +# Without addition: #{json0} (#{json0.class}) +# With addition: #{json1} (#{json1.class}) +# Parsed JSON: +# Without addition: #{ruby0.inspect} (#{ruby0.class}) +# With addition: #{ruby1.inspect} (#{ruby1.class}) # EOT # puts display # @@ -562,13 +562,13 @@ require 'json/common' # json1 = JSON.generate(foo1) # obj1 = JSON.parse(json1, create_additions: true) # # Make a nice display. -# display = <<EOT -# Generated JSON: -# Without custom addition: #{json0} (#{json0.class}) -# With custom addition: #{json1} (#{json1.class}) -# Parsed JSON: -# Without custom addition: #{obj0.inspect} (#{obj0.class}) -# With custom addition: #{obj1.inspect} (#{obj1.class}) +# display = <<~EOT +# Generated JSON: +# Without custom addition: #{json0} (#{json0.class}) +# With custom addition: #{json1} (#{json1.class}) +# Parsed JSON: +# Without custom addition: #{obj0.inspect} (#{obj0.class}) +# With custom addition: #{obj1.inspect} (#{obj1.class}) # EOT # puts display # |