Method: WhatToWatch::Show.services
- Defined in:
- lib/what_to_watch/show.rb
.services(hash) ⇒ Object
Determine Display Based On User Input Recorded in CLI.streaming_services
20 21 22 23 24 25 26 27 28 |
# File 'lib/what_to_watch/show.rb', line 20 def self.services(hash) services = hash.collect do |service, value| if value == "y" service.to_s.split('_').join(' ').capitalize end end services.compact! services end |