An open API service indexing awesome lists of open source software.

https://github.com/trailblazer/trailblazer-declarative

Generic DSL providing schemas and inheritance.
https://github.com/trailblazer/trailblazer-declarative

Last synced: 5 months ago
JSON representation

Generic DSL providing schemas and inheritance.

Awesome Lists containing this project

README

          

# Trailblazer::Declarative

## State

`State` is a minimalistic state handling object, similar to a hash with
additional "inheritance" logic via `State#copy`. Every field in `state`
can have a specific copying strategy, ranging from simply referencing the
original object to subclassing.

```ruby
state = Declarative.State(key: ["value", ...])
state.add!
state.update!
state.get
state.copy # inheritance
```