class BitBroker::Config
Constants
- DEFAULT_PATH_CONFIG
- DEFAULT_PATH_PID
Public Class Methods
[](param)
click to toggle source
# File lib/bitbroker/config.rb, line 8 def self.[](param) YAML.load_file(path_config)[param] end
path_config()
click to toggle source
# File lib/bitbroker/config.rb, line 12 def self.path_config @path_config ||= DEFAULT_PATH_CONFIG end
path_pid()
click to toggle source
# File lib/bitbroker/config.rb, line 15 def self.path_pid @path_pid ||= DEFAULT_PATH_PID end
set_config(path)
click to toggle source
# File lib/bitbroker/config.rb, line 19 def self.set_config(path) unless FileTest.exist? path raise InvalidFile path end @path_config = path end