README.md in minimus-0.1.0 vs README.md in minimus-0.1.1
- old
+ new
@@ -45,9 +45,23 @@
```ruby
state.move(:updated) do
puts "Callback"
end
```
+
+If you want to be slightly more unpredictable you can define your transitions:
+```ruby
+state.can(:new, possible: :destroyed)
+state.current_state
+=> :new
+state.move(:destroyed)
+state.current_state
+=> :destroyed
+```
+You can also supply an array of possibilities:
+```ruby
+state.can(:new, possible: [:created, :destroyed])
+```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).