Class: Array
Instance Method Summary collapse
-
#droby_dump(dest) ⇒ Object
using Distributed.format.
-
#proxy(peer) ⇒ Object
:nodoc:.
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 |