Smallest Word Finder in Ruby
In this guide you will learn how to the smallest word in an array.
Guide Tasks
  • Read Tutorial
  • Complete the Exercise

Summary

Build a method to find the smallest word in an array.

Exercise Description

"Build a method that will find the smallest word in an array."

Example Data

'words = %w{here is a list of words}'
-> expect(smallest_word(words)).to eq('a')

Real World Usage

This method can be used in helping you with data parsing.

Test Cases

Code File