Class: Waw::Routing::Javascript

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

Overview

Javascript routing

Instance Method Summary collapse

Methods inherited from RoutingRule

#apply_on_browser

Constructor Details

#initialize(code) ⇒ Javascript

Creates a javascript instance



7
8
9
# File 'lib/waw/routing/javascript.rb', line 7

def initialize(code)
  @code = code
end

Instance Method Details

#generate_js_code(result, align = 0) ⇒ Object



11
12
13
# File 'lib/waw/routing/javascript.rb', line 11

def generate_js_code(result, align=0)
  @code
end