Module: Sounder::System
- Defined in:
- lib/sounder/system.rb
Class Method Summary collapse
Class Method Details
.set_volume(vol) ⇒ Object
3 4 5 6 7 8 |
# 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 |