def release
    return self unless prerelease?

    segments = self.segments.dup
    segments.pop while segments.any? { |s| String === s }
    self.class.new segments.join('.')
  end
#
The release for this version (e.g. 1.2.0.a -> 1.2.0).
Non-prerelease versions return themselves.