Create a binary from a value.
Parameters:
the binary
13 14 15 16 17 18 19 20 21
# File 'opal/browser/http/binary.rb', line 13 def initialize(value) if String === value @type = :string @data = value else @type = :buffer @data = value.to_a end end