class IRB::ExtendCommand::ShowSource
def show_source(source)
def show_source(source) file_content = IRB::Color.colorize_code(File.read(source.file)) code = file_content.lines[(source.first_line - 1)...source.last_line].join content = <<~CONTENT #{bold("From")}: #{source.file}:#{source.first_line} #{code} CONTENT Pager.page_content(content) end