bin/volay in volay-1.1.0 vs bin/volay in volay-1.2.0
- old
+ new
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
+
require File.expand_path('../../lib/volay', __FILE__)
# Module volay
module Volay
# Main class to display app or control volume
@@ -8,10 +10,10 @@
def initialize
cli = Volay::CLI.new
cli.parse_options
Volay::Config.set(:log_level, cli.config[:log_level])
Volay::Config.init_config
- if [:up, :down, :mute].any? { |k| cli.config.key?(k) }
+ if %i[up down mute].any? { |k| cli.config.key?(k) }
sound(cli.config)
else
app
end
end