Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • drb/gw.rb

Parent

Methods

Included Modules

DRb::GW

Public Class Methods

new() click to toggle source
 
               # File drb/gw.rb, line 16
def initialize
  super()
  @hash = {}
end
            

Public Instance Methods

[](key) click to toggle source
 
               # File drb/gw.rb, line 21
def [](key)
  synchronize do
    @hash[key]
  end
end
            
[]=(key, v) click to toggle source
 
               # File drb/gw.rb, line 27
def []=(key, v)
  synchronize do
    @hash[key] = v
  end
end