Sha256: 72dc27c2a826754cdcc51af0990b0a9326aed2bc22aa5b6abd77a240171e1716

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

module Woodpecker
  module Version
    module_function

    def major
      0
    end

    def minor
      1
    end

    def patch
      2
    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.2 lib/woodpecker/version.rb