Sha256: 2d188ec5ae6fc2f6ffcd99b0d34e3ef64ba00e89c1f8a7ec8979b3ff9e5bbfe6

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

module Ratis

  extend self

  def version
    @version ||= begin
      string = '2.5.2.1'

      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.1 lib/ratis/version.rb