mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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. ```
This commit is contained in:
parent
339227363c
commit
082114da05
1 changed files with 1 additions and 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
|
||||
|
|
Loading…
Reference in a new issue