[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
@ -100,6 +100,7 @@ class PP < PrettyPrint
|
|||||||
def sharing_detection
|
def sharing_detection
|
||||||
Ractor.current[:pp_sharing_detection]
|
Ractor.current[:pp_sharing_detection]
|
||||||
end
|
end
|
||||||
|
# Sets the sharing detection flag to b.
|
||||||
def sharing_detection=(b)
|
def sharing_detection=(b)
|
||||||
Ractor.current[:pp_sharing_detection] = b
|
Ractor.current[:pp_sharing_detection] = b
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user