To learn more about Set:

http://www.rubygarden.org/ruby?ProgrammingRubyTwo/Set

Chris