Class: ReverseProxy::Bind
- Inherits:
-
Object
- Object
- ReverseProxy::Bind
- Defined in:
- lib/reverse_proxy/bind.rb
Defined Under Namespace
Instance Method Summary collapse
- #add(type, format) ⇒ Object
-
#initialize(bind) ⇒ Bind
constructor
A new instance of Bind.
- #tcp ⇒ Object
- #unix ⇒ Object
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 (private)
42 43 44 |
# File 'lib/reverse_proxy/bind.rb', line 42 def method_missing method, *args, &block @bind.send method, *args, &block end |