typed_struct
Ruby structs but with type-checked attributes ⚡️🔐 (by johansenja)
Virtus
By solnic
typed_struct | Virtus | |
---|---|---|
1 | 1 | |
15 | 3,809 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | about 5 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.
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.
typed_struct
Posts with mentions or reviews of typed_struct.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-06-29.
Virtus
Posts with mentions or reviews of Virtus.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-06-29.
-
Ruby Structs with type specifications for the properties
One well-known example is https://github.com/solnic/virtus . There are others.
What are some alternatives?
When comparing typed_struct and Virtus you can also consider the following projects:
dry-struct - Typed struct and value objects
ActiveAttr - What ActiveModel left out
rbs - Type Signature for Ruby
FastAttributes - FastAttributes adds attributes with their types to the class
bindata - BinData - Reading and Writing Binary Data in Ruby
Ruby Facets - Ruby Facets
gem_rbs_collection - A collection of RBS for gems.
ActiveSupport
hash_to_struct - It enables recursive conversion of a ruby Hash to a Struct-like object and back.
Ruru - Native Ruby extensions written in Rust
Hanami::Utils - Ruby core extentions and class utilities for Hanami
Lean::Attributes - define typed attributes on arbitrary Ruby classes