Skip to content
New issue

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

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

Already on GitHub? # to your account

Default values can be derived from private methods #18

Merged
merged 2 commits into from
Nov 9, 2017
Merged

Default values can be derived from private methods #18

merged 2 commits into from
Nov 9, 2017

Conversation

tatey
Copy link
Contributor

@tatey tatey commented Nov 9, 2017

Hello there,

This patch makes it so default values can be derived by private methods as well continuing to support public methods.

In our usage of ShallowAttributes we'd prefer to keep default values as private methods since they have no purpose beyond initailization. We have found you can still test these methods indirectly by testing initialization.

All feedback welcome.

Cheers,
Tate

tatey added 2 commits November 9, 2017 11:34
Document default values can be private methods.
@coveralls
Copy link

coveralls commented Nov 9, 2017

Coverage Status

Coverage increased (+0.2%) to 99.51% when pulling 58c6409 on fivegoodfriends:private-default-values into 4e8a276 on davydovanton:master.

Copy link
Owner

@davydovanton davydovanton left a comment

Choose a reason for hiding this comment

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

wow, looks perfect! thanks for PR, I think I'll create new release today 💯

@davydovanton davydovanton merged commit e691bb9 into davydovanton:master Nov 9, 2017
@tatey
Copy link
Contributor Author

tatey commented Nov 10, 2017

Glad you like the patch. A new release would be wonderful 😄

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

Successfully merging this pull request may close these issues.

3 participants