Skip to content

Instantly share code, notes, and snippets.

@darrencauthon
Forked from djbender/public_setters.rb
Last active August 29, 2015 13:59
public setters
def public_setters
public_methods.select { |m| m =~ /=$/ }
.reject { |m| %i(== === !=).include? m }
end
@darrencauthon
Copy link
Author

@ferrislucas Let's use this.

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