{"id":93633,"library":"set","title":"Set","description":"Provides a class to deal with collections of unordered, unique values.","status":"active","version":"1.1.3","language":"ruby","source_language":null,"source_url":"https://github.com/ruby/set","tags":["set","collection","unique","utility"],"install":[{"cmd":"gem install set","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'set', '~> 1.1.3'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Set","correct":"require 'set'"}],"quickstart":{"code":"require 'set'\nset = Set.new([1, 2, 3, 3])\nputs set.inspect","lang":"ruby","description":"Create a Set with unique elements"},"warnings":[{"fix":"Add require 'set' at the top of your file.","message":"Set is not a core class in Ruby 3.2+; it must be explicitly required.","severity":"breaking","affected_versions":">= 3.2.0"}],"env_vars":null,"search_vec":"'class':4 'collect':8,14 'deal':6 'provid':2 'set':1,13 'uniqu':11,15 'unord':10 'util':16 'valu':12","created_at":"2026-06-19T09:53:16.215643+00:00","updated_at":"2026-06-19T09:53:16.215643+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ruby/set","github":"https://github.com/ruby/set","docs":"http://www.rubydoc.info/gems/set/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}