Spec-Zone.ru › Ruby 3.1

class DRb::GW

Parent:
Объект
Included modules:
MonitorMixin

The GW provides a synchronized store for participants in the gateway to communicate.

Public Class Methods

new() Показать исходный код
# File lib/drb/gw.rb, line 51
def initialize
  super()
  @hash = {}
end

Создаёт новый GW

Calls superclass method MonitorMixin::new

Public Instance Methods

[](key) Показать исходный код
# File lib/drb/gw.rb, line 58
def [](key)
  synchronize do
    @hash[key]
  end
end

Возвращает key из GW

[]=(key, v) Показать исходный код
# File lib/drb/gw.rb, line 66
def []=(key, v)
  synchronize do
    @hash[key] = v
  end
end

Сохраняет значение v по ключу key в GW

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API