[REFACTORING]Extract method from #parse_ruby