Class: Rack::Offline::Config
- Inherits:
-
Object
- Object
- Rack::Offline::Config
- Defined in:
- lib/rack/offline/config.rb
Instance Method Summary collapse
- #cache(*names) ⇒ Object
- #fallback(hash = {}) ⇒ Object
-
#initialize(root, &block) ⇒ Config
constructor
A new instance of Config.
- #network(*names) ⇒ Object
- #root ⇒ Object
Constructor Details
Instance Method Details
#cache(*names) ⇒ Object
12 13 14 |
# File 'lib/rack/offline/config.rb', line 12 def cache(*names) @cache.concat(names) end |
#fallback(hash = {}) ⇒ Object
20 21 22 |
# File 'lib/rack/offline/config.rb', line 20 def fallback(hash = {}) @fallback.merge!(hash) end |
#network(*names) ⇒ Object
16 17 18 |
# File 'lib/rack/offline/config.rb', line 16 def network(*names) @network.concat(names) end |
#root ⇒ Object
24 25 26 |
# File 'lib/rack/offline/config.rb', line 24 def root @root end |