Class: Waw::Routing::Refresh

Inherits:
RoutingRule show all
Defined in:
lib/waw/routing/refresh.rb

Overview

Refresh routing

Instance Method Summary collapse

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