-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Longest Word Method in Ruby #4030
Conversation
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.
Hey @arcjun01! Thanks for contributing to this project! We are a rather small team, so it may take some time to process this request. In the meantime, there are several ways you can make yourself a part of The Renegade Coder community. For instance, you can:
- Subscribe to the monthly newsletter
- Become a patron
- Join us on Discord
- And, check out the rest of the list which includes links to The Renegade Coder YouTube channel and Twitter account
Thanks for your help!
|
||
# Test and Output | ||
sentence = "Swiftly running foxes" | ||
output = longest_word_length(sentence) | ||
puts "Longest word length: #{output}" | ||
|
||
# Test 2 | ||
sentence2 = "Intricately interwoven \nphilosophical contemplations" | ||
output2 = longest_word_length(sentence2) | ||
puts "Longest word length: #{output2}" |
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.
Please remove this. We already have tests in our workflow. Also, please refer to the project infomation for details on the requirements. The program is supposed to take a single command-line argument.
@arcjun01 Are you planning on doing any more work on this PR? If not, please close it. |
Closing due to inactivity |
Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder!
For simplicity, please make sure that your pull request includes one and only one contribution.
Please fill one of the sections below as applicable.
Please also add any other relevant information to the Notes section at the bottom.
You may delete or just ignore any other sections.
For more information please refer to our contributing documentation
I Am Adding a New Code Snippet in an Existing Language
Add {PROJECT} in {LANGUAGE}
formatOther Notes
This pull request adds a longest-word method, which calculates the length of the longest word in a given sentence. This method is a practice exercise for learning Ruby - focusing on string manipulation, array handling, and iteration.
Code Summary: