Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • drb/gw.rb



Included Modules


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

Public Class Methods

new() click to toggle source

Creates a new GW

               # File drb/gw.rb, line 50
def initialize
  @hash = {}

Public Instance Methods

[](key) click to toggle source

Retrieves key from the GW

               # File drb/gw.rb, line 57
def [](key)
  synchronize do
[]=(key, v) click to toggle source

Stores value v at key in the GW

               # File drb/gw.rb, line 65
def []=(key, v)
  synchronize do
    @hash[key] = v

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit