module Sounder::System
Public Class Methods
set_volume(vol)
click to toggle source
# File lib/sounder/system.rb, line 3 def self.set_volume vol if vol.is_a? Numeric vol = vol.to_f * 7/100.0 system %{osascript -e "set volume #{vol}"} end end