# File lib/mini_magick/tool.rb, line 81 def call(*args) options = args[-1].is_a?(Hash) ? args.pop : {} warn "Passing whiny to MiniMagick::Tool#call is deprecated and will be removed in MiniMagick 5, use MiniMagick::Tool.new(whiny: false) instead." if args.any? whiny = args.fetch(0, @whiny) options[:whiny] = whiny options[:stderr] = false if block_given? shell = MiniMagick::Shell.new stdout, stderr, status = shell.run(command, options) yield stdout, stderr, status if block_given? stdout.chomp("\n") end