Class: Async::IO::Buffer

Inherits:
String
  • Object
show all
Defined in:
lib/async/io/buffer.rb

Instance Method Summary collapse

Constructor Details

#initializeBuffer



24
25
26
27
28
# File 'lib/async/io/buffer.rb', line 24

def initialize
  super
  
  force_encoding(Encoding::BINARY)
end

Instance Method Details

#<<(string) ⇒ Object Also known as: concat



30
31
32
33
34
# File 'lib/async/io/buffer.rb', line 30

def << string
  super
  
  force_encoding(Encoding::BINARY)
end