lib/pennyworth/cli.rb in pennyworth-9.2.0 vs lib/pennyworth/cli.rb in pennyworth-9.3.0

- old
+ new

@@ -56,11 +56,10 @@ method_option :size, aliases: "-s", desc: "Calculate string size.", type: :boolean, default: false - # rubocop:disable Metrics/CyclomaticComplexity # rubocop:disable Metrics/PerceivedComplexity def string value if options.downcase? then say value.downcase elsif options.upcase? then say value.upcase elsif options.titleize? then say value.titleize @@ -68,10 +67,9 @@ elsif options.snakecase? then say value.snakecase elsif options.size? then say value.size else say "Type 'pennyworth help string' for usage." end end - # rubocop:enable Metrics/CyclomaticComplexity # rubocop:enable Metrics/PerceivedComplexity desc "-i, [--install]", "Install Alfred Workflows." map %w[-i --install] => :install def install