Class: Hash

Inherits:
Object show all
Defined in:
lib/roby/distributed/protocol.rb

Instance Method Summary collapse

Instance Method Details

#droby_dump(dest) ⇒ Object

using Distributed.format. The keys are not modified.



108
109
110
111
112
113
# File 'ext/droby/dump.cc', line 108

static VALUE hash_droby_dump(VALUE self, VALUE dest)
{
    DROBY_DUMP_ITERATION_ARG arg = { rb_hash_new(), dest };
    rb_hash_foreach(self, (int(*)(ANYARGS)) hash_dump_element, (VALUE)&arg);
    return arg.result;
}

#proxy(peer) ⇒ Object

:nodoc:



20
21
22
23
24
25
# File 'lib/roby/distributed/protocol.rb', line 20

def proxy(peer) # :nodoc:
  inject({}) do |h, (k, v)| 
 h[peer.proxy(k)] = catch(:ignore_this_call) { peer.proxy(v) }
 h
  end
end