From c5431eadeb067df94d20d3faaf0000f7844e99b2 Mon Sep 17 00:00:00 2001 From: Kirill Sapozhnikov Date: Wed, 10 Mar 2021 18:54:16 +0300 Subject: [PATCH] Fixed documentation for Concurrent::Map --- lib/concurrent-ruby/concurrent/map.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/concurrent-ruby/concurrent/map.rb b/lib/concurrent-ruby/concurrent/map.rb index 3967cbf19..c83ae7808 100644 --- a/lib/concurrent-ruby/concurrent/map.rb +++ b/lib/concurrent-ruby/concurrent/map.rb @@ -143,8 +143,15 @@ def [](key) end end + # Set a value with key + # @param [Object] key + # @param [Object] value + # @return [Object] the new value + def []=(key, value) + super + end + alias_method :get, :[] - # TODO (pitr-ch 30-Oct-2018): doc alias_method :put, :[]= # Get a value with key, or default_value when key is absent,