Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the Ability to Create Events Using Notation #35

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Added the Ability to Create Events Using Notation #35

wants to merge 7 commits into from

Conversation

hishamabri
Copy link

Thanks for the great tool!

Just a simple addition that allows the addition of events using notation.
Example from the README file:

[inboxStateMachine addEventWithNotation:@"Deleted->UnDelete->Read"];

Which adds an event named 'UnDelete' for transitions from the Deleted state to the Read state.
I found this useful and more visual in my opinion.

The user can comma separate the source states:

[inboxStateMachine addEventWithNotation:@"Read,Deleted->Mark as Unread->Read"];

Added a few tests to accomodate the new changes.
Hope everything is up to standard.

Cheers,
Hisham

@hishamabri
Copy link
Author

Not sure why Travis CI keeps failing with:
The command "gem install cocoapods" failed and exited with 1 during .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant