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
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.7 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.6 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.5 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.4 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.3 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.2 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.1 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
study_line-0.2.0 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/multi_xml-0.6.0/lib/multi_xml/version.rb