dry-rb / dry-struct

Typed struct and value objects
https://dry-rb.org/gems/dry-struct
MIT License
410 stars 62 forks source link

Implement Struct.to_ast #148

Closed flash-gordon closed 4 years ago

flash-gordon commented 4 years ago

I keep a reference to the original class in the AST because it's the only way to do it right. This shouldn't be a problem, though.

This PR also adds a struct compiler which we can reuse in dry-schema.

dry-bot commented 4 years ago

Codacy Here is an overview of what got changed by this pull request:


Issues
======
- Added 2

See the complete overview on Codacy