mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Need #
`shareable_constant_value` is magic comment.
This commit is contained in:
parent
5dc753df47
commit
3d4207f9bb
1 changed files with 1 additions and 1 deletions
|
@ -674,7 +674,7 @@ TABLE = Ractor.make_shareable( {a: 'ko1', b: 'ko2', c: 'ko3'} )
|
|||
To make it easy, Ruby 3.0 introduced new `shareable_constant_value` Directive.
|
||||
|
||||
```ruby
|
||||
shareable_constant_value: literal
|
||||
# shareable_constant_value: literal
|
||||
|
||||
TABLE = {a: 'ko1', b: 'ko2', c: 'ko3'}
|
||||
#=> Same as: TABLE = Ractor.make_shareable( {a: 'ko1', b: 'ko2', c: 'ko3'} )
|
||||
|
|
Loading…
Add table
Reference in a new issue