Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • irb/notifier.rb
  • irb/slex.rb


An output formatter used internally by the lexer.

Public Class Methods

def_notifier(prefix = "", output_method = click to toggle source

Define a new Notifier output source, returning a new CompositeNotifier with the given prefix and output_method.

The optional prefix will be appended to all objects being inspected during output, using the given output_method as the output source. If no output_method is given, StdioOuputMethod will be used, and all expressions will be sent directly to STDOUT without any additional formatting.

               # File irb/notifier.rb, line 32
def def_notifier(prefix = "", output_method =, output_method)

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit