Module: LastfmM3u::Util
- Defined in:
- lib/lastfm-m3u/util.rb
Class Method Summary collapse
Class Method Details
.choose_track(track, track_set) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/lastfm-m3u/util.rb', line 3 def self.choose_track(track, track_set) choose do || .index = :letter .index_suffix = ") " .prompt = "For #{track}, which file would you like to use? ".color(:green) track_set.each do |track| .choice track do return track end end .choice "none" do return nil end end end |