Class: Array

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.



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'ext/droby/dump.cc', line 77

static VALUE array_droby_dump(VALUE self, VALUE dest)
{
    VALUE result = rb_ary_new();
    struct RArray* array = RARRAY(self);
    int i;

    VALUE el[2] = { Qnil, dest };
    for (i = 0; i < array->len; ++i)
    {
  el[0] = array->ptr[i];
  rb_ary_push(result, droby_format(2, el, mRobyDistributed));
    }

    return result;
}

#proxy(peer) ⇒ Object

:nodoc:



13
14
15
16
17
# File 'lib/roby/distributed/protocol.rb', line 13

def proxy(peer) # :nodoc:
  map do |element| 
 catch(:ignore_this_call) { peer.proxy(element) }
  end
end