Sha256: f778d7e86895acd8f37da0aa855054587e5c3cfeba6febe622c4ad34a54795a3

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

# :nodoc:
module Veritrans
	# hold version number of this library
	# it use class methods to generate it 
	#
  # Example:
  #
	#   Veritrans::Version.to_s
	class Version

		class <<self

	    private

			# :nodoc:
			def major
				1
			end

			# :nodoc:
			def minor
				1
			end

			# :nodoc:
			def patch
				0
			end

			# :nodoc:
			def pre
				nil
			end
		end

		# ==== Return:
		#
		# * <tt>String</tt> - version information
		def self.to_s
			[major, minor, patch, pre].compact.join('.')
		end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritrans-1.1.0 lib/veritrans/version.rb