U:RDoc::NormalClass[iI"SortedSet:ET@I"Set;To:RDoc::Markup::Document: @parts[o;;[o:RDoc::Markup::Paragraph;[I"FSortedSet implements a Set that guarantees that its elements are ;TI"Fyielded in sorted order (according to the return values of their ;TI",#<=> methods) when iterating over them.;To:RDoc::Markup::BlankLineo; ;[I"HAll elements that are added to a SortedSet must respond to the <=> ;TI"method for comparison.;T@o; ;[ I"JAlso, all elements must be mutually comparable: el1 <=> ;TI"Iel2 must not return nil for any elements el1 ;TI"Aand el2, else an ArgumentError will be raised when ;TI""iterating over the SortedSet.;T@S:RDoc::Markup::Heading: leveli: textI" Example;T@o:RDoc::Markup::Verbatim;[I"require "set" ;TI" ;TI"6set = SortedSet.new([2, 1, 5, 6, 4, 5, 3, 3, 3]) ;TI"ary = [] ;TI" ;TI"set.each do |obj| ;TI" ary << obj ;TI" end ;TI" ;TI"#p ary # => [1, 2, 3, 4, 5, 6] ;TI" ;TI"'set2 = SortedSet.new([1, 2, "3"]) ;TI"[set2.each { |obj| } # => raises ArgumentError: comparison of Fixnum with String failed;T: @format0: @fileI"lib/set.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I" class;T[[: public[[:protected[[: private[[I" instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@.@.cRDoc::TopLevel