Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
norbajunior committed Apr 2, 2021
1 parent ec291f4 commit 52618fd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/machinist.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ defmodule Machinist do
@moduledoc """
`Machinist` is a small library that allows you to implement finite state machines with Elixir in a simple way. It provides a simple DSL to write combinations of transitions based on events.
## Installation
You can install `machinist` by adding it to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:machinist, "~> 0.2.0"}
]
end
```
## Usage
A good example is how we would implement the behaviour of a door. With `machinist` would be this way:
```elixir
Expand Down

0 comments on commit 52618fd

Please sign in to comment.