Skip to content

Conversation

zKlau
Copy link

@zKlau zKlau commented Jul 1, 2025

No description provided.

end

def shout(msg)
echo(msg.upcase)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also leave msg.upcase, without echo

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can simplify method, without using any loops. Only a if else block

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name could be asigned to nil, and simplified with using ternary operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants