Module: Riot::Rack::ContextExtensions
- Defined in:
- lib/riot-rack.rb
Instance Method Summary collapse
Instance Method Details
#app(app) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/riot-rack.rb', line 7 def app(app) setup do @app = app def app; @app; end end end |
#get(uri, &context_definition) ⇒ Object
14 15 16 17 18 |
# File 'lib/riot-rack.rb', line 14 def get(uri,&context_definition) context("get #{uri}",&context_definition).last.setup do get uri end end |