Module: Render::React::Config

Defined in:
lib/render/react/config.rb

Class Method Summary collapse

Class Method Details

.gem_js_pathObject



17
18
19
# File 'lib/render/react/config.rb', line 17

def gem_js_path
  @gem_js_path ||= File.expand_path('../../../../js/dist', __FILE__)
end

.new_contextObject



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

.pathsObject



9
10
11
# File 'lib/render/react/config.rb', line 9

def paths
  @paths
end