diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-12-23 11:13:50 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-12-23 11:13:50 +0900 |
commit | 082114da0552484d2695f685d781418fa51c7ef8 (patch) | |
tree | f75c1e512ead94a20e2bfaf1a4400f2346f247dc /lib | |
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.
```
Diffstat (limited to 'lib')
-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 + # Sets the sharing detection flag to b. def sharing_detection=(b) Ractor.current[:pp_sharing_detection] = b end |