Class: DRb::GW (Ruby 2.2.2)
Description: Class : DRb::GW - Ruby 2.2.2

- Home
- Core 2.2.2
- Std-lib 2.2.2
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- drb/gw.rb

### Parent

Object

### Methods

- ::new
- #[]
- #[]=

### Included Modules

- MonitorMixin

### Class/Module Index

Quicksearch

- ACL
- ACL::ACLEntry
- ACL::ACLList
- DRb
- DRb::DRbArray
- DRb::DRbBadScheme
- DRb::DRbBadURI
- DRb::DRbConn
- DRb::DRbConnError
- DRb::DRbError
- DRb::DRbIdConv
- DRb::DRbIdConv
- DRb::DRbMessage
- DRb::DRbObject
- DRb::DRbObject
- DRb::DRbObservable
- DRb::DRbProtocol
- DRb::DRbRemoteError
- DRb::DRbSSLSocket
- DRb::DRbSSLSocket::SSLConfig
- DRb::DRbServerNotFound
- DRb::DRbTCPSocket
- DRb::DRbUNIXSocket
- DRb::DRbUndumped
- DRb::DRbUndumped
- DRb::DRbUnknown
- DRb::DRbUnknownError
- DRb::ExtServ
- DRb::ExtServManager
- DRb::GW
- DRb::GWIdConv
- DRb::TimerIdConv
- DRb::TimerIdConv::TimerHolder2
- DRb::TimerIdConv::TimerHolder2::InvalidIndexError
- Object

No matching classes.

# DRb::GW

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
      super()
      @hash = {}
    end

### Public Instance Methods

[](key) click to toggle source

Retrieves `key` from the GW

                   # File drb/gw.rb, line 57
    def [](key)
      synchronize do
        @hash[key]
      end
    end

[]=(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
      end
    end