Class: Middleman::Features::Proxy::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-proxy.rb

Class Method Summary collapse

Instance Method Summary collapse

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, options={})
  @@proxies ||= {}
  @@proxies[path] = options
end

.proxiesObject



33
34
35
# File 'lib/middleman-proxy.rb', line 33

def self.proxies
  @@proxies ||= {}
end