diff options
author | Benoit Daloze <[email protected]> | 2024-01-27 11:05:30 +0100 |
---|---|---|
committer | git <[email protected]> | 2024-01-27 18:41:07 +0000 |
commit | c2e2d2398b86e7bcc89ab534e3a3af54cf8374b5 () | |
tree | 577b4bd40fde347ce8104474ca043dce1b36bbd6 /lib | |
parent | 2217e08340cbeba427fc58c7f955fc2382ab0372 (diff) |
[ruby/prism] Call #inspect on diagnostic levels
* So it's clear it is a Symbol. Before: ... @level=warning_verbose_true> After: ... @level=:warning_verbose_true> https://.com/ruby/prism/commit/84503643b9
-rw-r--r-- | lib/prism/parse_result.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -329,7 +329,7 @@ module Prism # Returns a string representation of this error. def inspect - "#<Prism::ParseError @message=#{@message.inspect} @location=#{@location.inspect} @level=#{@level}>" end end @@ -358,7 +358,7 @@ module Prism # Returns a string representation of this warning. def inspect - "#<Prism::ParseWarning @message=#{@message.inspect} @location=#{@location.inspect} @level=#{@level}>" end end |