On this page
class DRb::GW
The GW provides a synchronized store for participants in the gateway to communicate.
Public Class Methods
# File lib/drb/gw.rb, line 51
def initialize
  super()
  @hash = {}
endCreates a new GW
       Calls superclass method 
     MonitorMixin::new
      Public Instance Methods
# File lib/drb/gw.rb, line 58
def [](key)
  synchronize do
    @hash[key]
  end
endRetrieves key from the GW
# File lib/drb/gw.rb, line 66
def []=(key, v)
  synchronize do
    @hash[key] = v
  end
endStores value v at key in the GW
Ruby Core © 1993–2022 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.