7 lines
116 B
Ruby
7 lines
116 B
Ruby
|
module MoviesHelper
|
||
|
# Checks if a number is odd:
|
||
|
def oddness(count)
|
||
|
count.odd? ? "odd" : "even"
|
||
|
end
|
||
|
end
|