Skip to content

Instantly share code, notes, and snippets.

@darrencauthon
Forked from djbender/public_setters.rb
Last active August 29, 2015 13:59
Show Gist options
  • Save darrencauthon/10743528 to your computer and use it in GitHub Desktop.
Save darrencauthon/10743528 to your computer and use it in GitHub Desktop.
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