summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 700a39cdc9..fcd33ba80e 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -174,7 +174,7 @@ class PP < PrettyPrint
Thread.current[:__recursive_key__][:inspect].delete id
end
- private def guard_inspect(object)
+ private def guard_inspect(object) # :nodoc:
recursive_state = Thread.current[:__recursive_key__]
if recursive_state&.key?(:inspect)
@@ -277,7 +277,7 @@ class PP < PrettyPrint
kwsplat ? yield(*v, **kwsplat) : yield(*v)
}
end
- EMPTY_KWHASH = if RUBY_VERSION >= "3.0"
+ EMPTY_KWHASH = if RUBY_VERSION >= "3.0" # :nodoc:
{}.freeze
end
private_constant :EMPTY_KWHASH