Module: Cheri::JRuby::Explorer::DRbHelper

Defined in:
lib/cheri/jruby/explorer/viewer.rb

Overview

GBLViewer

Instance Method Summary collapse

Instance Method Details

#drb_to_array(maybe_array) ⇒ Object

work around DRb (or possibly JRuby) issue iterating pseudo-array. TODO: need a client-side proxy for error handling and issues like this.



531
532
533
534
# File 'lib/cheri/jruby/explorer/viewer.rb', line 531

def drb_to_array(maybe_array)
  return maybe_array if Array === maybe_array
  Array.new(maybe_array.length) {|i| maybe_array[i]}
end