Module: HotReloadProxy

Defined in:
lib/hot_reload_proxy.rb,
lib/hot_reload_proxy/proxy.rb,
lib/hot_reload_proxy/railtie.rb,
lib/hot_reload_proxy/version.rb

Defined Under Namespace

Classes: HotReloadProxyRailtie, Proxy

Constant Summary collapse

DEFAULT_HOST =
'localhost'
DEFAULT_PORT =
'3100'
VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.hostObject



20
21
22
# File 'lib/hot_reload_proxy.rb', line 20

def self.host
  @host
end

.host=(host) ⇒ Object



12
13
14
# File 'lib/hot_reload_proxy.rb', line 12

def self.host=(host)
  @host = host
end

.portObject



24
25
26
# File 'lib/hot_reload_proxy.rb', line 24

def self.port
  @port
end

.port=(port) ⇒ Object



16
17
18
# File 'lib/hot_reload_proxy.rb', line 16

def self.port=(port)
  @port = port.to_s
end

.reset!Object



28
29
30
31
# File 'lib/hot_reload_proxy.rb', line 28

def self.reset!
  @host = DEFAULT_HOST
  @port = DEFAULT_PORT
end