Class: ReverseProxy::Bind
- Inherits:
-
Object
- Object
- ReverseProxy::Bind
show all
- Defined in:
- lib/reverse_proxy/bind.rb
Defined Under Namespace
Classes: Formatter, Tcp, Unix
Instance Method Summary
collapse
Constructor Details
#initialize(bind) ⇒ Bind
Returns a new instance of Bind.
29
30
31
|
# File 'lib/reverse_proxy/bind.rb', line 29
def initialize bind
@bind = "#{bind}".sub(/[a-z0-9]+:\/\//,'')
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
42
43
44
|
# File 'lib/reverse_proxy/bind.rb', line 42
def method_missing method, *args, &block
@bind.send method, *args, &block
end
|
Instance Method Details
#add(type, format) ⇒ Object
32
33
34
|
# File 'lib/reverse_proxy/bind.rb', line 32
def add type, format
Formatter.add type, format
end
|
#tcp ⇒ Object
35
36
37
|
# File 'lib/reverse_proxy/bind.rb', line 35
def tcp
@tcp ||= Tcp.new @bind
end
|
#unix ⇒ Object
38
39
40
|
# File 'lib/reverse_proxy/bind.rb', line 38
def unix
@unix ||= Unix.new @bind
end
|