class Concurrent::Map

def key(value)

Returns:
  • (Object, nil) - key or nil when not found

Parameters:
  • value (Object) --
def key(value)
  each_pair { |k, v| return k if v == value }
  nil
end unless method_defined?(:key)