module RailsDotJs

Public Class Methods

included(base) click to toggle source
# File lib/rails_dot_js.rb, line 5
    def self.included(base)
base.send(:include, Execution)
    end

Public Instance Methods

fetch_config(key) click to toggle source
# File lib/rails_dot_js.rb, line 14
def fetch_config(key)
  _config[key]
end
set_config(key, value) click to toggle source

implement block later

# File lib/rails_dot_js.rb, line 10
def set_config(key, value)
  _config[key] = value
end

Private Instance Methods

_config() click to toggle source
# File lib/rails_dot_js.rb, line 19
def _config
  @config ||= _default_config
end
_default_config() click to toggle source
# File lib/rails_dot_js.rb, line 23
def _default_config
  {
    node_path: File.expand_path('app/nodejs'),
    node_env: ENV["RAILS_ENV"] || 'development'
  }
end