-
Notifications
You must be signed in to change notification settings - Fork 23
Ironman class 추가 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Ironman class 추가 #35
Conversation
Walkthrough이번 변경 사항은 Changes
Sequence Diagram(s)sequenceDiagram
participant User as 사용자
participant Ironman as Ironman 인스턴스
participant Console as 콘솔
User->>Ironman: 인스턴스 생성
User->>Ironman: speak() 호출
Ironman->>Console: "I'm Ironman." 출력
Poem
Tip 🌐 Web search-backed reviews and chat
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
Ironman.kt (2)
1-1: 클래스 문서화 추가 제안클래스의 목적과 사용법을 명확히 하기 위해 KDoc 문서화 주석을 추가하는 것이 좋습니다.
다음과 같이 문서화를 추가해보세요:
+/** + * 아이언맨 캐릭터를 나타내는 클래스입니다. + */ class Ironman {
2-4: 메서드 개선 제안메서드 구현이 잘 되어있지만, 다음과 같은 개선사항을 제안드립니다:
- 메서드 문서화 추가
- 출력 메시지를 상수로 분리하여 재사용성 향상
다음과 같이 개선해보세요:
+ companion object { + private const val SIGNATURE_MESSAGE = "I'm Ironman." + } + + /** + * 아이언맨의 시그니처 대사를 출력합니다. + */ fun speak() { - println("I'm Ironman.") + println(SIGNATURE_MESSAGE) }
나는 파이썬은 모르지만 아이언맨은 알지
Summary by CodeRabbit