Registry / utility / hashstruct

hashstruct

JSON →
library1.3.1rbrubygemsunverified

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.

gem install hashstruct
INSTALL
IMPORT
SIG · HASHSTRUCT
H
hashstruct
utilityrubyv1.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HashStruct
require 'hashstruct'

Create a HashStruct and access keys as methods.

require 'hashstruct' h = HashStruct.new(name: 'Alice', age: '30') puts h.name puts h.age
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
hashstruct — gem install hashstruct · libregistry