Sha256: e637401fb5c3a4848587847437fc55a4495f9234cece4731902e52e197ab06af
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 Bytes
Contents
module Mpg321 module Control module Volume def volume @volume end def volume= volume @volume = [0, volume.to_i, 100].sort[1] send_command 'G', @volume end def volume_up inc send :volume=, @volume + inc end def volume_down dec send :volume=, @volume - dec end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mpg321-1.0.0 | lib/mpg321/control/volume.rb |