{"id":80549,"library":"immutable-struct","title":"Immutable Struct","description":"Easily create value objects without the pain of Ruby's Struct or its setters.","status":"active","version":"2.5.0","language":"ruby","source_language":null,"source_url":"https://github.com/stitchfix/immutable-struct","tags":["immutable","struct","value-object","functional"],"install":[{"cmd":"gem install immutable-struct","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'immutable-struct', '~> 2.5.0'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"ImmutableStruct","correct":"require 'immutable-struct'"}],"quickstart":{"code":"require 'immutable-struct'\n\nPoint = ImmutableStruct.new(:x, :y)\np = Point.new(3, 4)\nputs p.x  # => 3\n# p.x = 5  # raises NoMethodError","lang":"ruby","description":"Define and use an immutable value object"},"warnings":[],"env_vars":null,"search_vec":"'creat':4 'easili':3 'function':22 'immut':1,17 'object':6,21 'pain':9 'rubi':11 'setter':16 'struct':2,13,18 'valu':5,20 'value-object':19 'without':7","created_at":"2026-06-18T05:27:15.703039+00:00","updated_at":"2026-06-18T05:27:15.703039+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/stitchfix/immutable-struct","github":"https://github.com/stitchfix/immutable-struct","docs":"http://www.rubydoc.info/gems/immutable-struct/","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}}