# Table of Contents - set: Ruby Standard Library Documentation

## Classes and Modules

- Enumerable
- Set
  - Comparison
  - Example
  - Contact
  - What’s Here
  - Methods for Creating a Set
  - Methods for Set Operations
  - Methods for Comparing
  - Methods for Querying
  - Methods for Assigning
  - Methods for Deleting
  - Methods for Converting
  - Methods for Iterating
  - Other Methods

## Methods

- ::[] — Set
- ::new — Set
- #& — Set
- #+ — Set
- #- — Set
- #< — Set
- #<< — Set
- #<= — Set
- #<=> — Set
- #== — Set
- #=== — Set
- #> — Set
- #>= — Set
- #^ — Set
- #add — Set
- #add? — Set
- #classify — Set
- #clear — Set
- #collect! — Set
- #compare_by_identity — Set
- #compare_by_identity? — Set
- #delete — Set
- #delete? — Set
- #delete_if — Set
- #difference — Set
- #disjoint? — Set
- #divide — Set
- #each — Set
- #empty? — Set
- #filter! — Set
- #flatten — Set
- #flatten! — Set
- #include? — Set
- #initialize_clone — Set
- #initialize_dup — Set
- #inspect — Set
- #intersect? — Set
- #intersection — Set
- #join — Set
- #keep_if — Set
- #length — Set
- #map! — Set
- #member? — Set
- #merge — Set
- #proper_subset? — Set
- #proper_superset? — Set
- #reject! — Set
- #replace — Set
- #reset — Set
- #select! — Set
- #size — Set
- #subset? — Set
- #subtract — Set
- #superset? — Set
- #to_a — Set
- #to_s — Set
- #to_set — Set
- #to_set — Enumerable
- #union — Set
- #| — Set