movies_helper.rb 116 B

123456
  1. module MoviesHelper
  2. # Checks if a number is odd:
  3. def oddness(count)
  4. count.odd? ? "odd" : "even"
  5. end
  6. end