module Swee

require “cgi”

Constants

VERSION

Public Class Methods

app_config() { |config.app| ... } click to toggle source

获取app配置

# File lib/swee/engine.rb, line 17
def app_config
  yield self.config.app
end
config() click to toggle source

配置实例

# File lib/swee/engine.rb, line 32
def config
  @@config
end
database_config() click to toggle source

获取 数据库配置

# File lib/swee/engine.rb, line 27
def database_config

end
init_config() click to toggle source

初始化

# File lib/swee/engine.rb, line 37
def init_config
  @@config = Config.new
end
root() click to toggle source

获取 app 路径

# File lib/swee/engine.rb, line 12
def root
  ENV["app_path"]
end
server_config() { |config.server| ... } click to toggle source

获取 服务器配置

# File lib/swee/engine.rb, line 22
def server_config
  yield self.config.server
end

Private Instance Methods

app_config() { |config.app| ... } click to toggle source

获取app配置

# File lib/swee/engine.rb, line 17
def app_config
  yield self.config.app
end
config() click to toggle source

配置实例

# File lib/swee/engine.rb, line 32
def config
  @@config
end
database_config() click to toggle source

获取 数据库配置

# File lib/swee/engine.rb, line 27
def database_config

end
init_config() click to toggle source

初始化

# File lib/swee/engine.rb, line 37
def init_config
  @@config = Config.new
end
root() click to toggle source

获取 app 路径

# File lib/swee/engine.rb, line 12
def root
  ENV["app_path"]
end
server_config() { |config.server| ... } click to toggle source

获取 服务器配置

# File lib/swee/engine.rb, line 22
def server_config
  yield self.config.server
end