Module: Roda::RodaPlugins::BridgetownServer::RequestMethods
- Defined in:
- lib/roda/plugins/bridgetown_server.rb
Instance Method Summary collapse
-
#bridgetown ⇒ Object
Starts up the Bridgetown routing system.
-
#cookies ⇒ Object
Monkeypatch Roda/Rack's Request object so it returns a hash which allows for indifferent access.
Instance Method Details
#bridgetown ⇒ Object
Starts up the Bridgetown routing system
132 133 134 |
# File 'lib/roda/plugins/bridgetown_server.rb', line 132 def bridgetown Bridgetown::Rack::Routes.start!(scope) end |
#cookies ⇒ Object
Monkeypatch Roda/Rack's Request object so it returns a hash which allows for indifferent access
126 127 128 129 |
# File 'lib/roda/plugins/bridgetown_server.rb', line 126 def # TODO: maybe replace with a simpler hash that offers an overloaded `[]` method .with_indifferent_access end |