improve private|protected snippet(ruby)