Created
April 15, 2014 15:40
-
-
Save djbender/10742594 to your computer and use it in GitHub Desktop.
show methods ending in "=" except for built in comparison operators.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def public_setters | |
public_methods.select{|method| method =~ /=$/ }.delete_if{|method| %i(== === !=).include?(method)} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment