Sha256: 56020891315f7ad139fd40fe6e26e682e310573cdbb416b664b1e57850b835f0

Contents?: true

Size: 597 Bytes

Versions: 125

Compression:

Stored size: 597 Bytes

Contents

module MultiXml
  module Version
  module_function

    # @return [Integer]
    def major
      0
    end

    # @return [Integer]
    def minor
      6
    end

    # @return [Integer]
    def patch
      0
    end

    # @return [Integer, NilClass]
    def pre
      nil
    end

    # @return [Hash]
    def to_h
      {
        :major => major,
        :minor => minor,
        :patch => patch,
        :pre => pre,
      }
    end

    # @return [Array]
    def to_a
      [major, minor, patch, pre].compact
    end

    # @return [String]
    def to_s
      to_a.join('.')
    end
  end
end

Version data entries

125 entries across 99 versions & 6 rubygems

Version Path
cli-nasa-0.1.0 vendor/bundle/ruby/2.7.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
paynow_sdk-0.1.8 vendor/cache/ruby/2.7.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
paynow_sdk-0.1.7 vendor/cache/ruby/2.7.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
paynow_sdk-0.1.7 vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.6/vendor/cache/ruby/2.7.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
multi_xml-0.6.0 lib/multi_xml/version.rb