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