{"id":84160,"library":"hashstruct","title":"HashStruct","description":"HashStruct provides an object based on Hash, but acts like Struct (or OpenStruct), providing helpful accessors for each key from the get-go, and magically parses string values when it can.","status":"active","version":"1.3.1","language":"ruby","source_language":null,"source_url":"https://github.com/jslabovitz/hashstruct","tags":["hash","struct","accessors","parsing","utility"],"install":[{"cmd":"gem install hashstruct","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'hashstruct', '~> 1.3.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"HashStruct","correct":"require 'hashstruct'"}],"quickstart":{"code":"require 'hashstruct'\nh = HashStruct.new(name: 'Alice', age: '30')\nputs h.name\nputs h.age","lang":"ruby","description":"Create a HashStruct and access keys as methods."},"warnings":[],"env_vars":null,"search_vec":"'accessor':17,36 'act':10 'base':6 'get':24 'get-go':23 'go':25 'hash':8,34 'hashstruct':1,2 'help':16 'key':20 'like':11 'magic':27 'object':5 'openstruct':14 'pars':28,37 'provid':3,15 'string':29 'struct':12,35 'util':38 'valu':30","created_at":"2026-06-19T06:04:40.243209+00:00","updated_at":"2026-06-19T06:04:40.243209+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/jslabovitz/hashstruct","github":"https://github.com/jslabovitz/hashstruct","docs":"http://www.rubydoc.info/gems/hashstruct/","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}}