~ubuntu-branches/ubuntu/wily/ruby-retryable/wily-proposed

« back to all changes in this revision

Viewing changes to lib/retryable/version.rb

  • Committer: Package Import Robot
  • Author(s): Hleb Valoshka
  • Date: 2015-06-22 16:22:37 UTC
  • Revision ID: package-import@ubuntu.com-20150622162237-1xf7yvad71h84er2
Tags: upstream-2.0.1
ImportĀ upstreamĀ versionĀ 2.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
module Retryable
 
2
  class Version
 
3
    MAJOR = 2 unless defined? Retryable::Version::MAJOR
 
4
    MINOR = 0 unless defined? Retryable::Version::MINOR
 
5
    PATCH = 1 unless defined? Retryable::Version::PATCH
 
6
 
 
7
    class << self
 
8
 
 
9
      # @return [String]
 
10
      def to_s
 
11
        [MAJOR, MINOR, PATCH].compact.join('.')
 
12
      end
 
13
 
 
14
    end
 
15
  end
 
16
end