gemのversion.rbです

 1 module M
 2   class Version
 3     MAJOR = 0
 4     MINOR = 9
 5     PATCH = 3
 6     PRE = nil
 7 
 8     class << self
 9       def to_s
10         [MAJOR, MINOR, PATCH, PRE].compact.join('.')
11       end
12     end
13   end
14 end



comments powered by Disqus


© 2015 kyuden