Skip to content

How to get list of event eligible events? #362

Open
@gamesover

Description

@gamesover
event :start do
       transition :parked => :in_motion
    end

    event :stop do
       transition :in_motion => :parked
    end

    state(:in_motion, value: 0)

I want to get the list of eligible states, such as
MyClass.state_machine.events[:stop][:from], get result of [0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions