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

Add Memento #11

Merged
merged 3 commits into from Oct 3, 2017
Merged

Add Memento #11

merged 3 commits into from Oct 3, 2017

Conversation

silverweed
Copy link
Collaborator

Adding the Memento pattern. Code is formatted and runs correctly.

end

def restoreMemento(memento : Match::State)
@state = memento
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be save_memento and restore_memento ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, definitely. It was a camelCase-esque lapsus from my part. Fixing it as soon as I have a PC available 👍

@silverweed
Copy link
Collaborator Author

Fixed wrong case for variables and methods

@veelenga veelenga merged commit 0eee215 into master Oct 3, 2017
@veelenga veelenga deleted the memento branch October 3, 2017 14:01
@veelenga
Copy link
Member

veelenga commented Oct 3, 2017

Thanks 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants