Fix generating incorrect accessibility by prototype rb by pocke · Pull Request #491 · ruby/rbs

Problem I implemented generating accessibility methods in #481 , but it has a bug 🙇‍♂️ It generates incorrect accessibility when methods are continually defined with multiple private def foo() end ...