Module: Otto::VERSION
- Defined in:
- lib/otto/version.rb
Overview
Otto::VERSION
Class Method Summary collapse
Class Method Details
.inspect ⇒ Object
13 14 15 |
# File 'lib/otto/version.rb', line 13 def self.inspect to_s end |
.load_config ⇒ Object
17 18 19 20 |
# File 'lib/otto/version.rb', line 17 def self.load_config require 'yaml' self.version ||= YAML.load_file(File.join(LIB_HOME, '..', 'VERSION.yml')) end |
.to_s ⇒ Object
7 8 9 10 11 |
# File 'lib/otto/version.rb', line 7 def self.to_s load_config version = self.version [version[:MAJOR], version[:MINOR], version[:PATCH]].join('.') end |