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

Rename internal state #872

Merged
merged 2 commits into from
May 7, 2015
Merged

Rename internal state #872

merged 2 commits into from
May 7, 2015

Conversation

packetmonkey
Copy link
Contributor

This brings consistency renaming @internal_state to @State and making it an attr_accessor that's used internally everywhere.

Everywhere was already accessing @internal_state via a state method that acted as an attr_reader for the instance variable.

The only place @internal_state is referenced is in the document
initialization, and the state instance method returns @internal_state
so we rename @internal_state to @State and then use an attr_accessor to
bring some consistency to the variable name and usage.
packetmonkey added a commit that referenced this pull request May 7, 2015
@packetmonkey packetmonkey merged commit e073ce6 into master May 7, 2015
@packetmonkey packetmonkey deleted the rename-internal-state branch May 7, 2015 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant