Module: Gibbler::VERSION

Defined in:
lib/gibbler.rb

Class Method Summary collapse

Class Method Details

.load_configObject



24
25
26
27
# File 'lib/gibbler.rb', line 24

def self.load_config
  require 'yaml'
  @version ||= YAML.load_file(::File.join(GIBBLER_LIB_HOME, '..', 'VERSION.yml'))
end

.to_sObject



19
20
21
22
# File 'lib/gibbler.rb', line 19

def self.to_s
  load_config
  [@version[:MAJOR], @version[:MINOR], @version[:PATCH]].join('.')
end