Class: LieutenantGovernor::Templates::JsPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/lieutenant_governor/templates/js_paths.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(routes) ⇒ JsPaths

Returns a new instance of JsPaths.



9
10
11
# File 'lib/lieutenant_governor/templates/js_paths.rb', line 9

def initialize(routes)
  @routes = routes
end

Instance Attribute Details

#routesObject (readonly)

Returns the value of attribute routes.



7
8
9
# File 'lib/lieutenant_governor/templates/js_paths.rb', line 7

def routes
  @routes
end

Instance Method Details

#renderObject



13
14
15
16
# File 'lib/lieutenant_governor/templates/js_paths.rb', line 13

def render
  b = binding
  ERB.new(LieutenantGovernor::Templates::JS_PATHS_TEMPLATE_STR).result b
end