Class: Nova::Starbound::Server::FakeServer
- Inherits:
-
Object
- Object
- Nova::Starbound::Server::FakeServer
- Defined in:
- lib/nova/starbound/server.rb
Overview
A fake server that wraps a pipe.
Instance Method Summary collapse
-
#accept ⇒ Object
Returns the pipe.
-
#initialize(pipe) ⇒ FakeServer
constructor
Initialize the fake server with the pipe.
-
#listen(_) ⇒ Object
Does nothing.
Constructor Details
#initialize(pipe) ⇒ FakeServer
Initialize the fake server with the pipe.
165 166 167 |
# File 'lib/nova/starbound/server.rb', line 165 def initialize(pipe) @pipe = pipe end |
Instance Method Details
#accept ⇒ Object
Returns the pipe.
175 176 177 |
# File 'lib/nova/starbound/server.rb', line 175 def accept @pipe end |
#listen(_) ⇒ Object
Does nothing.
170 |
# File 'lib/nova/starbound/server.rb', line 170 def listen(_); end |