Flowdock
method

segments

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Version
segments() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/version.rb, line 274
  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
Register or log in to add new notes.