Sha256: 2db450ed65193bbe5fd1f6f6c4cf26e3daabc6fd66bce1b76978159bf774f6a1
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
=begin The State object determines what the player should be doing at any given moment. Attributes: playback: boolean content: content object to be playing It can be updated by any of the stimulus objects. =end require 'radiodan/content' class Radiodan class State include Logging attr_reader :playback, :content def initialize(config={}) @playback = config[:playback] || 'play' @content = config[:content] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiodan-0.0.1 | lib/radiodan/state.rb |