Sha256: 38be09b31669dd8692978521a7e7065ee0660ce1c8d444a65ce57ed8da728bf7

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

module Woodpecker
  module Version
    module_function

    def major
      0
    end

    def minor
      1
    end

    def patch
      3
    end

    def to_a
      [major, minor, patch].compact
    end

    def to_s
      to_a.join('.')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
woodpecker-0.1.3 lib/woodpecker/version.rb