Class: LieutenantGovernor::Templates::JsPaths
- Inherits:
-
Object
- Object
- LieutenantGovernor::Templates::JsPaths
- Defined in:
- lib/lieutenant_governor/templates/js_paths.rb
Instance Attribute Summary collapse
-
#routes ⇒ Object
readonly
Returns the value of attribute routes.
Instance Method Summary collapse
-
#initialize(routes) ⇒ JsPaths
constructor
A new instance of JsPaths.
- #render ⇒ Object
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
#routes ⇒ Object (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
#render ⇒ Object
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 |