Class: Async::IO::Protocol::Generic
- Inherits:
- 
      Object
      
        - Object
- Async::IO::Protocol::Generic
 
- Defined in:
- lib/async/io/protocol/generic.rb
Instance Attribute Summary collapse
- 
  
    
      #stream  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute stream. 
Instance Method Summary collapse
- #close ⇒ Object
- #closed? ⇒ Boolean
- 
  
    
      #initialize(stream)  ⇒ Generic 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Generic. 
Constructor Details
#initialize(stream) ⇒ Generic
Returns a new instance of Generic.
| 12 13 14 | # File 'lib/async/io/protocol/generic.rb', line 12 def initialize(stream) @stream = stream end | 
Instance Attribute Details
#stream ⇒ Object (readonly)
Returns the value of attribute stream.
| 24 25 26 | # File 'lib/async/io/protocol/generic.rb', line 24 def stream @stream end | 
Instance Method Details
#close ⇒ Object
| 20 21 22 | # File 'lib/async/io/protocol/generic.rb', line 20 def close @stream.close end | 
#closed? ⇒ Boolean
| 16 17 18 | # File 'lib/async/io/protocol/generic.rb', line 16 def closed? @stream.closed? end |