Class: Player::Base
- Inherits:
-
Object
- Object
- Player::Base
- Defined in:
- lib/remme/player/base.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
4 5 6 7 8 9 |
# File 'lib/remme/player/base.rb', line 4 def init self.tap do @adapter = adapter = adapter.being_played? end end |
.pause ⇒ Object
11 12 13 14 |
# File 'lib/remme/player/base.rb', line 11 def pause return if ! @adapter.pause end |
.play ⇒ Object
16 17 18 19 |
# File 'lib/remme/player/base.rb', line 16 def play return if ! @adapter.play end |