Class: Mooncell::Connection
- Inherits:
-
Object
- Object
- Mooncell::Connection
- Defined in:
- lib/mooncell/connection.rb
Overview
The connection wrapper
Instance Attribute Summary collapse
- #app ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(io, app) ⇒ Connection
constructor
Create a connection.
-
#write(data) ⇒ Object
Write data.
Constructor Details
#initialize(io, app) ⇒ Connection
Create a connection
17 18 19 20 21 22 |
# File 'lib/mooncell/connection.rb', line 17 def initialize(io, app) @io = io @app = app prepare end |
Instance Attribute Details
#app ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/mooncell/connection.rb', line 10 def app @app end |
Instance Method Details
#write(data) ⇒ Object
Write data
29 30 31 |
# File 'lib/mooncell/connection.rb', line 29 def write(data) io.write(data) end |