lib/cheat/version.rb in cheat-1.3.2 vs lib/cheat/version.rb in cheat-1.3.3

- old
+ new

@@ -1,3 +1,32 @@ module Cheat - VERSION = "1.3.2" + class Version + class << self + + # @return [Integer] + def major + 1 + end + + # @return [Integer] + def minor + 3 + end + + # @return [Integer] + def patch + 3 + end + + # @return [String, NilClass] + def pre + nil + end + + # @return [String] + def to_s + [major, minor, patch, pre].compact.join('.') + end + + end + end end