# File lib/net/ssh/multi/session.rb, line 274 def use(*hosts, &block) options = hosts.last.is_a?(Hash) ? hosts.pop : {} options = { :via => default_gateway }.merge(options) results = hosts.map do |host| server_list.add(Server.new(self, host, options)) end if block results << server_list.add(DynamicServer.new(self, options, block)) end group [] => results results.length > 1 ? results : results.first end