Raku의 private_method_names — 비공개 메서드 이름들
Raku의 private_method_names — 비공개 메서드 이름들
클래스 안에 숨어 있는 비공개 메서드들, 즉 이름 앞에 !가 붙어서 밖에서 바로 부를 수 없는 메서드들의 목록을 얻고 싶을 때가 있어요. Metamodel::PrivateMethodContainer 역할이 제공하는 private_method_names 메서드는 그 이름들을 알려 줍니다.
method private_method_names($obj)
private_methods의 별칭(alias)이에요. 비공개 메서드들을 다루는 같은 기능을 private_methods라는 이름으로도 부를 수 있다는 뜻이죠.