Class: ArrayBuffer

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/drb/websocket.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



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