Module: Radiant::Version

Defined in:
lib/radiant.rb

Constant Summary collapse

Major =
version[0]
Minor =
version[1]
Tiny =
version[2]
Patch =
version[3]

Class Method Summary collapse

Class Method Details

.to_sObject Also known as: to_str



22
23
24
# File 'lib/radiant.rb', line 22

def to_s
  [Major, Minor, Tiny, Patch].delete_if{|v| v.nil? }.join('.')
end