diff options
Diffstat (limited to 'lib/helpers.rb')
| -rw-r--r-- | lib/helpers.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb index b14d357..b810142 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -1,11 +1,9 @@ -module Helpers - - def Helpers.include?(movies,movie) +module Helpers + def include?(thing) match = false - movies.each do |m| - match = true if m == movie + each do |t| + match = true if t == thing end match end - end
\ No newline at end of file |
