Sha256: 45a7d196b8b3d3b8457c631eab1ecfc7e64a4550db8685ece7f8318d846c5994

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

*   Pass `static: false` in case you don't want initial states to be forced. e.g.

    ```ruby
    # will set the initial machine state
    @machines.initialize_states(@object)

    # optionally you can pass the attributes to have that as the initial state
    @machines.initialize_states(@object, {}, { state: 'finished' })

    # or pass set `static` to false if you want to keep the `object.state` current value
    @machines.initialize_states(@object, { static: false })
    ```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
state_machines-0.1.4 Changelog.md