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.
36
37
38
|
# File 'lib/reverse_proxy/bind.rb', line 36
def initialize bind
@bind = "#{bind}".sub(/[a-z0-9]+:\/\//,'')
end
|
Instance Method Details
#add(type, format) ⇒ Object
39
40
41
|
# File 'lib/reverse_proxy/bind.rb', line 39
def add type, format
Formatter.add type, format
end
|
#tcp ⇒ Object
42
43
44
|
# File 'lib/reverse_proxy/bind.rb', line 42
def tcp
@tcp ||= Tcp.new @bind
end
|
#to_s ⇒ Object
48
49
50
|
# File 'lib/reverse_proxy/bind.rb', line 48
def to_s
@bind
end
|
#unix ⇒ Object
45
46
47
|
# File 'lib/reverse_proxy/bind.rb', line 45
def unix
@unix ||= Unix.new @bind
end
|