Class: Middleman::Features::Proxy::Collection
- Inherits:
-
Object
- Object
- Middleman::Features::Proxy::Collection
- Defined in:
- lib/middleman-proxy.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(app) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(app) ⇒ Collection
Returns a new instance of Collection.
29 30 31 |
# File 'lib/middleman-proxy.rb', line 29 def initialize(app) @app = app end |
Class Method Details
.add(path, options = {}) ⇒ Object
37 38 39 40 |
# File 'lib/middleman-proxy.rb', line 37 def self.add(path, ={}) @@proxies ||= {} @@proxies[path] = end |
.proxies ⇒ Object
33 34 35 |
# File 'lib/middleman-proxy.rb', line 33 def self.proxies @@proxies ||= {} end |