Created
June 11, 2013 17:34
-
-
Save n00ge/5758933 to your computer and use it in GitHub Desktop.
Method sorting (Alphabetical)
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
class AlphabeticalService | |
def go! | |
method_a | |
method_b | |
end | |
private | |
def method_a | |
return if method_e? | |
method_d | |
end | |
def method_b | |
return if method_e? | |
method_c | |
end | |
def method_c | |
"c" | |
end | |
def method_d | |
"d" | |
end | |
def method_e? | |
true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment