Skip to content

Instantly share code, notes, and snippets.

@jcsky
Created March 8, 2018 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcsky/7dc78bba1a782d2a4084c45b072ec1bf to your computer and use it in GitHub Desktop.
Save jcsky/7dc78bba1a782d2a4084c45b072ec1bf to your computer and use it in GitHub Desktop.
how to refactor nested private method?
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