hash_to_struct
dry-struct
hash_to_struct | dry-struct | |
---|---|---|
1 | - | |
4 | 402 | |
- | -0.2% | |
0.0 | 5.3 | |
about 2 years ago | 4 months 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.
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.
dry-struct
We haven't tracked posts mentioning dry-struct yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
typed_struct - Ruby structs but with type-checked attributes β‘οΈπ
ActiveAttr - What ActiveModel left out
Ruby-Cheatsheet - π The missing cheatsheet for Ruby
ContractedValue - Library for creating contracted immutable(by default) value objects
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