lib/backticks.rb in backticks-0.3.0 vs lib/backticks.rb in backticks-0.3.1

- old
+ new

@@ -4,22 +4,22 @@ require_relative 'backticks/runner' require_relative 'backticks/ext' module Backticks # Run a command; return a Command object that can be used to interact with - # the running process. Method parameters are passed through to the Runner. + # the running process. # - # @see Backticks::Runner#command + # @param [String] cmd # @return [Backticks::Command] a running command - def self.new(*cmd) - Backticks::Runner.new.command(*cmd) + def self.new(cmd) + Backticks::Runner.new.command(cmd) end # Run a command; return its stdout. # # @param [String] cmd # @return [String] the command's output - def self.run(*cmd) + def self.run(cmd) command = self.new(*cmd) command.join command.captured_output end