# File lib/thor/shell/basic.rb, line 87 def print_list(list, options={}) return if list.empty? ident = " " * (options[:ident] || 0) content = case options[:mode] when :inline last = list.pop "#{list.join(", ")}, and #{last}" else # rows ident + list.join("\n#{ident}") end $stdout.puts content end