Class: Groat::SMTPD::Server
- Inherits:
-
GServer
- Object
- GServer
- Groat::SMTPD::Server
- Defined in:
- lib/groat/smtpd/server.rb
Instance Method Summary collapse
-
#initialize(server_class = nil, *args) ⇒ Server
constructor
A new instance of Server.
- #serve(io) ⇒ Object
Constructor Details
#initialize(server_class = nil, *args) ⇒ Server
Returns a new instance of Server.
29 30 31 32 |
# File 'lib/groat/smtpd/server.rb', line 29 def initialize(server_class = nil, *args) @server_class = server_class unless server_class.nil? super(*args) end |
Instance Method Details
#serve(io) ⇒ Object
34 35 36 |
# File 'lib/groat/smtpd/server.rb', line 34 def serve(io) @server_class.new.serve(io) end |