From 082114da0552484d2695f685d781418fa51c7ef8 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Wed, 23 Dec 2020 11:13:50 +0900 Subject: [PATCH] [DOC] Add doc to sharing_detection= [ci skip] Before: ``` $ ri sharing_detection= = .sharing_detection= (from ruby core) === Implementation from PP ------------------------------------------------------------------------ sharing_detection=(b) ------------------------------------------------------------------------ Returns the sharing detection flag as a boolean value. It is false by default. ``` After: ``` $ ri sharing_detection= = .sharing_detection= (from ruby core) === Implementation from PP ------------------------------------------------------------------------ sharing_detection=(b) ------------------------------------------------------------------------ Sets the sharing detection flag to b. ``` --- lib/pp.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pp.rb b/lib/pp.rb index a410a0d04a..ce282bee00 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -100,6 +100,7 @@ class PP < PrettyPrint def sharing_detection Ractor.current[:pp_sharing_detection] end + # Sets the sharing detection flag to b. def sharing_detection=(b) Ractor.current[:pp_sharing_detection] = b end