lib/vlc-client/client/media_controls.rb
def volume(level = nil)
        level.nil? ? Integer(connection.write("volume", false)) : connection.write("volume #{Integer(level)}")
      rescue ArgumentError
        level.nil? ? 0 : nil
      end
# Queries/Sets VLC volume level
#
# @overload volume()
#
#   @return [Integer] the current volume level
#
# @overload volume(level)
#
#   @param [Integer] level the volume level to set
#
Queries/Sets VLC volume level
Queries / Sets VLC volume level
def volume(level = nil)
        level.nil? ? Integer(connection.write("volume", false)) : connection.write("volume #{Integer(level)}")
      rescue ArgumentError
        level.nil? ? 0 : nil
      end
def volume ( level = nil ) level . nil? ? Integer ( connection . write ( "volume" , false ) ) : connection . write ( "volume #{Integer(level)}" ) rescue ArgumentError level . nil? ? 0 : nil end
Queries/Sets VLC volume level
Queries / Sets VLC volume level
level
overload
volume() @return [Integer] the current volume level
volume () @return [ Integer ] the current volume level
overload
volume(level) @param [Integer] level the volume level to set
volume ( level ) @param [ Integer ] level the volume level to set