class Pry::Command::Cat::InputExpressionFormatter
def format
def format raise CommandError, "No input expressions!" if numbered_input_items.empty? if numbered_input_items.length > 1 content = '' numbered_input_items.each do |i, s| content += "#{Helpers::Text.bold(i.to_s)}:\n" content += decorate(Pry::Code(s).with_indentation(2)).to_s end content else decorate(Pry::Code(selected_input_items.first)) end end