Skip to content

How to get list of event eligible events? #362

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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