{"id":81138,"library":"optional","title":"Optional","description":"Provides an Optional type to represent values that may be absent, reducing reliance on nil.","status":"active","version":"0.0.7","language":"ruby","source_language":null,"source_url":"https://github.com/rsslldnphy/optional","tags":["optional","nil","functional","utility"],"install":[{"cmd":"gem install optional","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'optional', '~> 0.0.7'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Optional","correct":"require 'optional'"}],"quickstart":{"code":"require 'optional'\nvalue = Optional.of(42)\nputs value.or_else(0)","lang":"ruby","description":"Creates an Optional with a value and retrieves it with a fallback."},"warnings":[],"env_vars":null,"search_vec":"'absent':12 'function':19 'may':10 'nil':16,18 'option':1,4,17 'provid':2 'reduc':13 'relianc':14 'repres':7 'type':5 'util':20 'valu':8","created_at":"2026-06-18T05:45:25.168342+00:00","updated_at":"2026-06-18T05:45:25.168342+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":"http://github.com/rsslldnphy/optional","github":"https://github.com/rsslldnphy/optional","docs":"http://www.rubydoc.info/gems/optional/","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-18","next_check":"2026-12-15","install_tag":null}}