class Sounder::Sound
Attributes
file[R]
Public Class Methods
new(path)
click to toggle source
# File lib/sounder/sound.rb, line 6 def initialize path @file = Shellwords.escape path end
Public Instance Methods
play()
click to toggle source
# File lib/sounder/sound.rb, line 10 def play system %{/usr/bin/afplay "#{@file}" &} end