module Kemal
class Config
INSTANCE = Config.new
property ssl
property port
def initialize
@port = 3000
end
def scheme
ssl ? "https" : "http"
def self.config
yield Config::INSTANCE
Config::INSTANCE