method
_segments
_segments()
protected
Hide source
# File lib/rubygems/version.rb, line 376 def _segments # segments is lazy so it can pick up version values that come from # old marshaled versions, which don't go through marshal_load. # since this version object is cached in @@all, its @segments should be frozen @segments ||= @version.scan(/[0-9]+|[a-z]+/).map do |s| /^\d+$/ =~ s ? s.to_i : s end.freeze end