README.md in mutator-0.1.0 vs README.md in mutator-0.2.0
- old
+ new
@@ -38,16 +38,25 @@
module Mutator
class Wonder < Machine
def self.transitions
[
- { to: :sealed, from: [:signed] },
- { to: :delivered, from: [:sealed] },
- { to: :yours, from: [:delivered] }
+ { to: :sealed, from: :signed },
+ { to: :delivered, from: :sealed },
+ { to: :yours, from: :delivered }
]
end
end
end
+```
+
+You can add multiple states to transition from like so:
+
+``` ruby
+def self.transitions
+ [
+ { to: :yours, from: [:signed, :sealed, :delivered] }
+ ]
```
### So how do I use it?
Transitions look like this: