Class: Browser::Middleware::Context
- Inherits:
-
Object
- Object
- Browser::Middleware::Context
- Defined in:
- lib/browser/middleware/context.rb,
lib/browser/middleware/context/additions.rb,
lib/browser/middleware/context/url_methods.rb
Defined Under Namespace
Modules: Additions, UrlMethods
Instance Attribute Summary collapse
-
#browser ⇒ Object
readonly
Returns the value of attribute browser.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request) ⇒ Context
constructor
A new instance of Context.
- #redirect_to(path) ⇒ Object
Constructor Details
Instance Attribute Details
#browser ⇒ Object (readonly)
Returns the value of attribute browser.
6 7 8 |
# File 'lib/browser/middleware/context.rb', line 6 def browser @browser end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
6 7 8 |
# File 'lib/browser/middleware/context.rb', line 6 def request @request end |
Instance Method Details
#redirect_to(path) ⇒ Object
17 18 19 |
# File 'lib/browser/middleware/context.rb', line 17 def redirect_to(path) throw :redirected, path.to_s end |