lib/timecop_console/version.rb in timecop-console-0.2.0 vs lib/timecop_console/version.rb in timecop-console-0.3.0
- old
+ new
@@ -1,17 +1,13 @@
module TimecopConsole
class Version
- MAJOR = 0 unless defined? MAJOR
- MINOR = 2 unless defined? MINOR
- PATCH = 0 unless defined? PATCH
+ MAJOR ||= 0
+ MINOR ||= 3
+ PATCH ||= 0
class << self
-
- # @return [String]
def to_s
[MAJOR, MINOR, PATCH].compact.join('.')
end
-
end
-
end
end