Sha256: 2bb851f01ed2add6bbec053138c1371e7f850c5faf38c29503ee54315b7b6ec5

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 Bytes

Contents

module Pakyow
  module Configuration
    class Server
      class << self
        attr_accessor :port, :host
        
        # On what port does the application run?
        def port
          @port || 3000
        end
        
        # On what host does the application run?
        def host
          @host || '0.0.0.0'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-core-0.7.2 pakyow-core/lib/core/configuration/server.rb
pakyow-core-0.7.1 pakyow-core/lib/core/configuration/server.rb
pakyow-core-0.7.0 pakyow-core/lib/core/configuration/server.rb
pakyow-core-0.6.3.1 pakyow-core/lib/core/configuration/server.rb
pakyow-core-0.6.1 pakyow-core/lib/core/configuration/server.rb