aboutsummaryrefslogtreecommitdiff
path: root/challenge-279/deadmarshal/ruby/ch2.rb
blob: 896128f2ec4ecebe1f798fdc2f37cf3e6ed038b1 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby

def split_string(str)
  str.count('aeiouy') % 2 == 0
end

puts split_string('perl')
puts split_string('book')
puts split_string('good morning')