Sha256: 480dbebdae99a00b3c0993568afcf8e4cb897b9db1e581fde8e906118c1daa64

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

module Ratis

  extend self

  def version
    @version ||= begin

      string = '2.5.2.6'

      def string.parts
        split('.').map { |p| p.to_i }
      end

      def string.major
        parts[0]
      end

      def string.minor
        parts[1]
      end

      def string.build
        parts[2]
      end

      def string.patch
        parts[3]
      end

      string
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ratis-2.5.2.6 lib/ratis/version.rb