DEV Community

Discussion on: Daily Challenge #135 - The Wide Mouthed Frog!

Collapse
 
hyftar profile image
Simon Landry

Ruby:

def mouth_size(animal)
  animal =~ /alligator/i ? 'small' : 'wide'
end