method

segments

v2_1_10 - Show latest stable - Class: Gem::Version
segments()
public

No documentation available.

# File lib/rubygems/version.rb, line 297
  def segments # :nodoc:

    # segments is lazy so it can pick up version values that come from
    # old marshaled versions, which don't go through marshal_load.

    @segments ||= @version.scan(/[0-9]+|[a-z]+/).map do |s|
      /^\d+$/ =~ s ? s.to_i : s
    end
  end