Class: ArrayBuffer
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/opal/drb/websocket.rb', line 11 def to_s result = "" arr = [] %x( for (var i = 0; i < self.native.length; i ++) { arr.push(self.native[i]); result += String.fromCharCode(self.native[i]); } ) result end |