summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-12-23 11:13:50 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-12-23 11:13:50 +0900
commit082114da0552484d2695f685d781418fa51c7ef8 (patch)
treef75c1e512ead94a20e2bfaf1a4400f2346f247dc /lib
parent339227363ce0cf967fa17efa4489d823932ddabd (diff)
[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. ```
Diffstat (limited to 'lib')
-rw-r--r--lib/pp.rb1
1 files changed, 1 insertions, 0 deletions
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