Class: Nova::Starbound::Server::FakeServer

Inherits:
Object
  • Object
show all
Defined in:
lib/nova/starbound/server.rb

Overview

A fake server that wraps a pipe.

Instance Method Summary collapse

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

#acceptObject

Returns the pipe.

Returns:

  • (Object)


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