Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method · added in Ruby 3.4

Ractor.[]=

(::Symbol, untyped) -> untyped
[]=(sym, val)

set a value in ractor-local storage of current Ractor

Ruby version changes

  1. 3.4
See also .[] #[] #[]= .count also in 4.1 · 4.0