Method: Mir::Config#initialize

Defined in:
lib/mir/config.rb

#initialize(config_file = nil) {|Mir::Config| ... } ⇒ Mir::Config

Creates a new config instance

Parameters:

  • config_file (String) (defaults to: nil)

    path to the configuration file

Yields:



12
13
14
15
16
17
18
19
20
21
# File 'lib/mir/config.rb', line 12

def initialize(config_file = nil)
  @config_file = config_file
  @settings, @database = nil, nil
  
  self.max_upload_attempts = 10
  self.max_download_attempts = 10
  self.max_threads = 5
  
  yield self if block_given?
end