Class: Async::IO::Buffer
- Inherits:
 - 
      String
      
        
- Object
 - String
 - Async::IO::Buffer
 
 
- Defined in:
 - lib/async/io/buffer.rb
 
Constant Summary collapse
- BINARY =
 Encoding::BINARY
Instance Method Summary collapse
- #<<(string) ⇒ Object (also: #concat)
 - 
  
    
      #initialize  ⇒ Buffer 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Buffer.
 
Constructor Details
Instance Method Details
#<<(string) ⇒ Object Also known as: concat
      17 18 19 20 21 22 23 24 25  | 
    
      # File 'lib/async/io/buffer.rb', line 17 def << string if string.encoding == BINARY super(string) else super(string.b) end return self end  |