Class: Beeps::SoundPlayer

Inherits:
Object
  • Object
show all
Includes:
Xot::Setter
Defined in:
lib/beeps/sound.rb

Instance Method Summary collapse

Instance Method Details

#paused?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/beeps/sound.rb', line 50

def paused?()
  state == :paused
end

#playing?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/beeps/sound.rb', line 46

def playing?()
  state == :playing
end

#stopped?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/beeps/sound.rb', line 54

def stopped?()
  state == :stopped
end