123456789_123456789_123456789_123456789_123456789_

Class: IRB::StdioOutputMethod

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, OutputMethod
Instance Chain:
self, OutputMethod
Inherits: IRB::OutputMethod
Defined in: lib/irb/output-method.rb

Overview

A standard output printer

Instance Method Summary

  • #print(*opts)

    Prints the given opts to standard output, see IO#print for more information.

OutputMethod - Inherited

#parse_printf_format

Returns an array of the given format and opts to be used by Kernel.sprintf, if there was a successful Regexp match in the given format from #printf

#pp

Prints the given objs calling Object#inspect on each.

#ppx

Prints the given objs calling Object#inspect on each and appending the given prefix.

#print

Open this method to implement your own output method, raises a NotImplementedError if you don’t define #print in your own class.

#printf

Extends IO#printf to format the given opts for Kernel.sprintf using #parse_printf_format

#printn

Prints the given opts, with a newline delimiter.

#puts

Calls #print on each element in the given objs, followed by a newline character.

Instance Method Details