Module: Centralbank

Defined in:
lib/centralbank.rb,
lib/centralbank/tool.rb,
lib/centralbank/service.rb,
lib/centralbank/version.rb

Defined Under Namespace

Classes: Configuration, Service, Tool

Constant Summary collapse

VERSION =
'0.2.2'

Class Method Summary collapse

Class Method Details

.configObject



89
90
91
# File 'lib/centralbank.rb', line 89

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

lets you use

Centralbank.configure do |config|
   config.address = 'Sepp'
end

Yields:



85
86
87
# File 'lib/centralbank.rb', line 85

def self.configure
  yield( config )
end

.mainObject

add command line binary (tool) e.g. $ try centralbank -h



95
96
97
# File 'lib/centralbank.rb', line 95

def self.main
 Tool.new.run(ARGV)
end

.rootObject



7
8
9
# File 'lib/centralbank/version.rb', line 7

def self.root
  File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
end