Sha256: cb440b33b2e978c4e1bc0dabbc1af39d7c0564f2d22f330ced42d1b2498f7460
Contents?: true
Size: 449 Bytes
Versions: 13
Compression:
Stored size: 449 Bytes
Contents
module AgileNotifier class Player class << self def play_on_linux(file) # play command comes from sox package, not pre-installed system("play #{file}") end def play_on_osx(file) system("afplay #{file}") end def play_on_windows(file) raise(NotImplementedError, "Method [#{__method__}] is empty, please implement", caller) end end private_class_method :new end end
Version data entries
13 entries across 13 versions & 1 rubygems