dry-struct VS hash_to_struct

Compare dry-struct vs hash_to_struct and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
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
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of dry-struct. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning dry-struct yet.
Tracking mentions began in Dec 2020.

hash_to_struct

Posts with mentions or reviews of hash_to_struct. We have used some of these posts to build our list of alternatives and similar projects.
  • Convert a Hash to a Struct-like object
    1 project | dev.to | 21 Feb 2022
    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?

When comparing dry-struct and hash_to_struct you can also consider the following projects:

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