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

Simplify defining getters and setters #93

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

ashmaroli
Copy link
Contributor

..by using attr_reader and attr_writer in the module's singleton class.
(a method defined in the singleton class is same as defining the method with a self. prefix.)

@aarongustafson
Copy link
Owner

You know I tried this initially and ran into issues, but thought I was maybe missing something. Thanks!

@aarongustafson aarongustafson merged commit a5abbe8 into aarongustafson:master Sep 4, 2018
@ashmaroli ashmaroli deleted the getters-n-setters branch September 4, 2018 21:53
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.

2 participants