Created
March 8, 2018 02:14
-
-
Save jcsky/7dc78bba1a782d2a4084c45b072ec1bf to your computer and use it in GitHub Desktop.
how to refactor nested private method?
This file contains 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 A | |
def hi | |
action_1 | |
action_2 | |
action_3 | |
end | |
private | |
def action_1 | |
method_1 | |
end | |
def action_2 | |
method_1 | |
end | |
def method_1 | |
method_3 | |
end | |
def action_3 | |
method_2 | |
end | |
def method_2 | |
method_3 | |
end | |
def method_3 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment