Class: Marshal::BinaryString

Inherits:
String show all
Defined in:
opal/opal/corelib/marshal.rb

Overview

For simulating binary strings

Instance Method Summary collapse

Methods inherited from String

#%, #*, #<<, #<=>, #==, #=~, #[], #__id__, #__marshal__, _load, #bytes, #bytesize, #capitalize, #capitalize!, #casecmp, #center, #chars, #chomp, #chomp!, #chop, #chop!, #chr, #clone, #count, #delete, #downcase, #downcase!, #dup, #each_byte, #each_char, #each_line, #empty?, #encode, #end_with?, #force_encoding, #getbyte, #gsub, #gsub!, #hash, #hex, #include?, #index, inherited, #initialize, #inspect, #instance_variables, #intern, #length, #lines, #ljust, #lstrip, #lstrip!, #match, new, #next, #next!, #oct, #ord, #partition, #reverse, #reverse!, #rindex, #rjust, #rpartition, #rstrip, #scan, #slice!, #split, #squeeze, #squeeze!, #start_with?, #strip, #strip!, #sub, #sub!, #succ!, #sum, #swapcase, #swapcase!, #to_f, #to_i, #to_proc, #to_s, #tr, #tr!, #tr_s, #tr_s!, try_convert, #upcase, #upcase!, #upto

Methods included from Comparable

#<, #<=, #==, #>, #>=, #between?, normalize

Constructor Details

This class inherits a constructor from String

Instance Method Details

#+(other) ⇒ Object



15
16
17
# File 'opal/opal/corelib/marshal.rb', line 15

def +(other)
  BinaryString.new(super)
end

#encodingObject



11
12
13
# File 'opal/opal/corelib/marshal.rb', line 11

def encoding
  Encoding::BINARY
end