dry-struct
hash_to_struct
Our great sponsors
dry-struct | hash_to_struct | |
---|---|---|
- | 1 | |
402 | 4 | |
0.5% | - | |
5.3 | 0.0 | |
4 months ago | about 2 years ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dry-struct
We haven't tracked posts mentioning dry-struct yet.
Tracking mentions began in Dec 2020.
hash_to_struct
-
Convert a Hash to a Struct-like object
To facilitate this, I've built the hash_to_struct gem, which defines a unified interface for creating objects based on Struct or OpenStruct out of Hash objects, with an ability to use nested hashes and a few other convenient features. It is a simple gem under 100 lines of code, with no external dependencies.
What are some alternatives?
ActiveAttr - What ActiveModel left out
typed_struct - Ruby structs but with type-checked attributes β‘οΈπ
ContractedValue - Library for creating contracted immutable(by default) value objects
Ruby-Cheatsheet - π The missing cheatsheet for Ruby
dry-validation - Validation library with type-safe schemas and rules
sorbet-typed - A central repository for sharing type definitions for Ruby gems
ALX - ALX is a command line tool for Linux, macOS and Windows to export and import the game data of Skies of Arcadia, Skies of Arcadia Legends, Eternal Arcadia (γ¨γΏγΌγγ«γ’γ«γ«γγ£γ’), and Eternal Arcadia Legends (γ¨γΏγΌγγ«γ’γ«γ«γγ£γ’γ¬γΈγ§γ³γ).
dry-types - Flexible type system for Ruby with coercions and constraints
portrayal - A minimal builder for struct-like classes in Ruby
dry-cli - General purpose Command Line Interface (CLI) framework for Ruby
everypolitician-data - data for national legislatures worldwide