class SCSI::Config
Attributes
dump_errors[RW]
logging[RW]
tokens[RW]
Public Class Methods
load_config(path)
click to toggle source
Load Ruby config file @param path [String] config file
# File lib/scsi/config.rb, line 7 def self.load_config(path) raise 'config file missing' unless path SCSI.logger.debug("Loading config file: #{path}") require File.expand_path(path) SCSI.logger.info('Config.load_config done.') end
new()
click to toggle source
# File lib/scsi/config.rb, line 30 def initialize @tokens = [] @dump_errors = false @logging = false end
setup() { |shared| ... }
click to toggle source
Call this from your config file
# File lib/scsi/config.rb, line 21 def self.setup yield Config.shared SCSI.logger.debug('Config.setup block executed.') end