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
- .config ⇒ Object
-
.configure {|config| ... } ⇒ Object
lets you use Centralbank.configure do |config| config.address = ‘Sepp’ end.
-
.main ⇒ Object
add command line binary (tool) e.g.
- .root ⇒ Object
Class Method Details
.config ⇒ Object
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
85 86 87 |
# File 'lib/centralbank.rb', line 85 def self.configure yield( config ) end |
.main ⇒ Object
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 |
.root ⇒ Object
7 8 9 |
# File 'lib/centralbank/version.rb', line 7 def self.root File.( File.dirname(File.dirname(File.dirname(__FILE__))) ) end |