Module: Render::React::Config
- Defined in:
- lib/render/react/config.rb
Class Method Summary collapse
Class Method Details
.gem_js_path ⇒ Object
17 18 19 |
# File 'lib/render/react/config.rb', line 17 def gem_js_path @gem_js_path ||= File.('../../../../js/dist', __FILE__) end |
.new_context ⇒ Object
13 14 15 |
# File 'lib/render/react/config.rb', line 13 def new_context MiniRacer::Context.new end |
.path(*paths) ⇒ Object
4 5 6 7 |
# File 'lib/render/react/config.rb', line 4 def path(*paths) @paths ||= [] @paths += paths end |
.paths ⇒ Object
9 10 11 |
# File 'lib/render/react/config.rb', line 9 def paths @paths end |