Class: Waw::Routing::Refresh
- Inherits:
-
RoutingRule
- Object
- RoutingRule
- Waw::Routing::Refresh
- Defined in:
- lib/waw/routing/refresh.rb
Overview
Refresh routing
Instance Method Summary collapse
-
#apply_on_browser(result, browser) ⇒ Object
Forces the browser to refresh.
- #generate_js_code(result, align = 0) ⇒ Object
Instance Method Details
#apply_on_browser(result, browser) ⇒ Object
Forces the browser to refresh
7 8 9 |
# File 'lib/waw/routing/refresh.rb', line 7 def apply_on_browser(result, browser) browser.refresh end |
#generate_js_code(result, align = 0) ⇒ Object
11 12 13 |
# File 'lib/waw/routing/refresh.rb', line 11 def generate_js_code(result, align=0) " "*align + "location.reload(true);" end |