Class: Plum::Rack::BaseListener

Inherits:
Object
  • Object
show all
Defined in:
lib/plum/rack/listener.rb

Direct Known Subclasses

TCPListener, TLSListener, UNIXListener

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



17
18
19
# File 'lib/plum/rack/listener.rb', line 17

def method_missing(name, *args)
  @server.__send__(name, *args)
end

Instance Method Details

#accept(svc) ⇒ Object



13
14
15
# File 'lib/plum/rack/listener.rb', line 13

def accept(svc)
  raise "not implemented"
end

#stopObject



5
6
7
# File 'lib/plum/rack/listener.rb', line 5

def stop
  @server.close
end

#to_ioObject



9
10
11
# File 'lib/plum/rack/listener.rb', line 9

def to_io
  raise "not implemented"
end