Class: Ap4r::Configuration

Inherits:
Object show all
Defined in:
lib/ap4r/util/irm.rb

Overview

:nodoc:

Defined Under Namespace

Classes: Services

Constant Summary collapse

SETTINGS_FILES_DEFAULT =
%w( config/ap4r_settings.rb )

Class Method Summary collapse

Class Method Details

.load_setting_files(settings_files = SETTINGS_FILES_DEFAULT) ⇒ Object



42
43
44
45
46
# File 'lib/ap4r/util/irm.rb', line 42

def load_setting_files(settings_files = SETTINGS_FILES_DEFAULT)
  settings_files.each{ |file|
    load(file) if FileTest.file?(file)
  }
end

.servicesObject



38
39
40
# File 'lib/ap4r/util/irm.rb', line 38

def services
  Services.instance
end

.setup {|Services.instance| ... } ⇒ Object

Yields:



34
35
36
# File 'lib/ap4r/util/irm.rb', line 34

def setup
  yield Services.instance
end