Module: Jsimple
- Defined in:
- lib/jsimple.rb,
lib/jsimple/builder.rb,
lib/jsimple/railtie.rb,
lib/jsimple/version.rb,
lib/jsimple/rails_view_helper.rb
Defined Under Namespace
Modules: RailsViewHelper
Classes: Builder, JsimpleRailtie
Constant Summary
collapse
- DEFAULT_HOST =
'localhost'
- DEFAULT_PORT =
'3100'
- DEFAULT_DEVELOPMENT =
defined?(Rails) ? Rails.env.development? : false
- DEFAULT_JS_START_COMMAND =
'start'
- VERSION =
'0.3.0'
Class Method Summary
collapse
Class Method Details
.app(name, props: {}, id: nil) ⇒ Object
9
10
11
|
# File 'lib/jsimple.rb', line 9
def self.app(name, props: {}, id: nil)
Builder.app_factory(name, props, id)
end
|
.development ⇒ Object
49
50
51
|
# File 'lib/jsimple.rb', line 49
def self.development
@development
end
|
.development=(development) ⇒ Object
33
34
35
|
# File 'lib/jsimple.rb', line 33
def self.development=(development)
@development = development
end
|
.host ⇒ Object
41
42
43
|
# File 'lib/jsimple.rb', line 41
def self.host
@host
end
|
.host=(host) ⇒ Object
23
24
25
26
|
# File 'lib/jsimple.rb', line 23
def self.host=(host)
HotReloadProxy::Config.host = host
@host = host
end
|
.js_start_command ⇒ Object
53
54
55
|
# File 'lib/jsimple.rb', line 53
def self.js_start_command
@js_start_command
end
|
.js_start_command=(js_start_command) ⇒ Object
37
38
39
|
# File 'lib/jsimple.rb', line 37
def self.js_start_command=(js_start_command)
@js_start_command = js_start_command
end
|
.port ⇒ Object
45
46
47
|
# File 'lib/jsimple.rb', line 45
def self.port
@port
end
|
.port=(port) ⇒ Object
28
29
30
31
|
# File 'lib/jsimple.rb', line 28
def self.port=(port)
HotReloadProxy::Config.port = port
@port = port
end
|