Sha256: 3bca0ec83e725daa914571001c3441bc9a1df744b5778524877df07d34a5b1e1

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
				2
			end

			# :nodoc:
			def patch
				6
			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.2.6 lib/veritrans/version.rb