Module: Eluvia::Base

Defined in:
lib/eluvia-base.rb,
lib/eluvia/base/config.rb,
lib/eluvia/base/version.rb

Defined Under Namespace

Modules: Config

Class Method Summary collapse

Class Method Details

.setup {|Eluvia::Base::Config| ... } ⇒ Object


Configuration




74
75
76
# File 'lib/eluvia-base.rb', line 74

def self.setup
  yield Eluvia::Base::Config
end

.versionObject



5
6
7
8
9
10
# File 'lib/eluvia/base/version.rb', line 5

def self.version
  path = File.expand_path('../../../version.json', __dir__)
  file = File.read(path)
  data = JSON.parse(file)
  data['version']
end