diff options
author | Kazuhiro NISHIYAMA <[email protected]> | 2020-12-23 11:13:50 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <[email protected]> | 2020-12-23 11:13:50 +0900 |
commit | 082114da0552484d2695f685d781418fa51c7ef8 () | |
tree | f75c1e512ead94a20e2bfaf1a4400f2346f247dc /lib/pp.rb | |
parent | 339227363ce0cf967fa17efa4489d823932ddabd (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. ```
-rw-r--r-- | lib/pp.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -100,6 +100,7 @@ class PP < PrettyPrint def sharing_detection Ractor.current[:pp_sharing_detection] end def sharing_detection=(b) Ractor.current[:pp_sharing_detection] = b end |