Sha256: e499997a8ef0c309b0d2f77a9b7bb0e434c88c3dcd64b4c933456e639f592b5b

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

module Ratis

  extend self

  def version
    @version ||= begin

      string = '3.3.7'

      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

      string
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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