Sha256: cf4b5bd6d952d1778db98dbd88523a3025c7230f890f6f787bc591844429d274
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
require 'autotest' class AutotestAniki def self.play(type) `aplay -q #{resource(type.to_s + '.wav')}` end private def self.resource(file) File.expand_path(File.dirname(__FILE__) + '/../res/' + file) end end Autotest.add_hook :green do |at| AutotestAniki.play(:green) end Autotest.add_hook :red do |at| AutotestAniki.play(:red) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autotest-aniki-0.1.0 | lib/autotest-aniki.rb |