forked from adrianeyre/codewars
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrog.rb
More file actions
21 lines (15 loc) · 639 Bytes
/
Frog.rb
File metadata and controls
21 lines (15 loc) · 639 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
=begin
The wide mouth frog is particularly interested in the eating
habits of other creatures.
He just can't stop asking the creatures he encounters what
they like to eat. But then he meet the alligator who just
LOVES to eat wide-mouthed frogs!
When he meets the alligator, it then makes a tiny mouth.
Your goal in this kata is to create complete the mouth_size
method this method take one argument animal which corresponds
to the animal encountered by frog. If this one is an alligator
(case insensitive) return small otherwise return wide.
=end
def mouth_size(animal)
return animal.downcase != 'alligator' ? 'wide' : 'small'
end