Module: ProconBypassMan::Web

Extended by:
Configuration::ClassAttributes
Defined in:
lib/procon_bypass_man/web.rb,
lib/procon_bypass_man/web/db.rb,
lib/procon_bypass_man/web/server.rb,
lib/procon_bypass_man/web/storage.rb,
lib/procon_bypass_man/web/version.rb,
lib/procon_bypass_man/web/configuration.rb,
lib/procon_bypass_man/web/models/setting.rb,
lib/procon_bypass_man/web/setting_parser.rb,
lib/procon_bypass_man/web/models/base_model.rb,
lib/procon_bypass_man/web/setting_parser/layer.rb,
lib/procon_bypass_man/web/setting_parser/top_level_layer.rb

Defined Under Namespace

Classes: App, BaseModel, Configuration, Db, Error, Server, Setting, SettingParser, Storage

Constant Summary collapse

PRESSED_BUTTONS_FILE_PATH =
"/tmp/pbm_pressed_buttons"
VERSION =
"0.1.3"

Class Method Summary collapse

Methods included from Configuration::ClassAttributes

logger, root

Class Method Details

.configObject



21
22
23
# File 'lib/procon_bypass_man/web.rb', line 21

def self.config
  @@configuration ||= ProconBypassMan::Web::Configuration.new
end

.configure(&block) ⇒ Object



15
16
17
18
19
# File 'lib/procon_bypass_man/web.rb', line 15

def self.configure(&block)
  @@configuration = ProconBypassMan::Web::Configuration.new
  @@configuration.instance_eval(&block)
  @@configuration
end

.gem_rootString

Returns:

  • (String)


26
27
28
# File 'lib/procon_bypass_man/web.rb', line 26

def self.gem_root
  File.expand_path('../..', __dir__).freeze
end