Sha256: 84c54c2f8b3d4f8bf838c2c27a1db9202e87cf7441128a154fad4729c1ebc69e

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

module HotReloadProxy
  class Config
    DEFAULT_HOST = 'localhost'
    DEFAULT_PORT = '3100'

    @host = DEFAULT_HOST
    @port = DEFAULT_PORT

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

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

    def self.host
      @host
    end

    def self.port
      @port
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hot_reload_proxy-0.3.0 lib/hot_reload_proxy/config.rb