Module: Artbase
- Defined in:
- lib/artbase.rb,
lib/artbase/tool.rb,
lib/artbase/version.rb,
lib/artbase/collection/base.rb
Overview
add (shared) “global” config
Defined Under Namespace
Classes: Base, Configuration, Tool
Constant Summary
collapse
- MAJOR =
0
- MINOR =
2
- PATCH =
2
- VERSION =
[MAJOR,MINOR,PATCH].join('.')
Class Method Summary
collapse
Class Method Details
.banner ⇒ Object
13
14
15
|
# File 'lib/artbase/version.rb', line 13
def self.banner
"artbase/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
end
|
.config ⇒ Object
33
|
# File 'lib/artbase.rb', line 33
def self.config() @config ||= Configuration.new; end
|
lets you use
Artbase.configure do |config|
config.ipfs_gateway = 'https://cloudflare-ipfs.com/ipfs/'
end
32
|
# File 'lib/artbase.rb', line 32
def self.configure() yield( config ); end
|
.root ⇒ Object
17
18
19
|
# File 'lib/artbase/version.rb', line 17
def self.root
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
end
|
.version ⇒ Object
9
10
11
|
# File 'lib/artbase/version.rb', line 9
def self.version
VERSION
end
|