smart_types
smart_types copied to clipboard
A set of objects that acts like types (type checking and type casting) with a support for basic type algebra.
``` ArgumentError: wrong number of arguments (given 1, expected 2) from /Users/exclusive/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/smart_types-0.7.1/lib/smart_core/types/primitive/sum_factory.rb:17:in `create_type' ```
For example: ```ruby SmartCore::Types::Variadic::ArrayOf(SmartCore::Types::Value::Text) ```
Need to docuemnt the behavior of `runtime_attributes` and their definitioning (it requires the `type.runtime_attributes_checker` to be defined inside the type definition block in order to add the ability of their...
hey @0exp, thanks for nice gem Sometimes I need to create a temporary type that I don't want to put in the class tree, what you think about it?
+ `SmartCore::Types::Struct::StrictHash`