Class: Ruby2D::Sound
- Inherits:
-
Object
- Object
- Ruby2D::Sound
- Defined in:
- lib/ruby2d/sound.rb
Instance Method Summary collapse
-
#initialize(window, path) ⇒ Sound
constructor
A new instance of Sound.
- #play ⇒ Object
Constructor Details
Instance Method Details
#play ⇒ Object
14 15 16 |
# File 'lib/ruby2d/sound.rb', line 14 def play @window.play_audio(self) end |