1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module Refinery module Blog class Version @major = 2 @minor = 1 @tiny = 0 @build = 'dev' class << self attr_reader :major, :minor, :tiny, :build def to_s [@major, @minor, @tiny, @build].compact.join('.') end end end end end