Sha256: 72ba37000e646c05f1c9fa419f30f0f7dd045a8b7083974dcd7db951f6129c76

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

module Ratis

  extend self

  def version
    @version ||= begin

      string = '3.2.0'

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