Sha256: c5e7487316e0950e3f856add3ee5b28a58a3b21eda20bac0f2ae369601f66d91

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

module SpotifyToMp3
  class App
    class StreamTrackIds
      include Enumerable

      def initialize(stream)
        @stream = stream
      end

      def each
        @stream.each do |track_id|
          track_id.strip!
          next if track_id.empty?
          yield track_id
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spotify-to-mp3-0.6.1 lib/spotify_to_mp3/app/stream_track_ids.rb
spotify-to-mp3-0.6.0 lib/spotify_to_mp3/app/stream_track_ids.rb