Module: IRB::Notifier (Ruby 2.7.5)
Description: Module : IRB::Notifier - Ruby 2.7.5

### Home Classes Methods

### In Files

- irb/notifier.rb

### Namespace

- CLASS IRB::Notifier::AbstractNotifier
- CLASS IRB::Notifier::CompositeNotifier
- CLASS IRB::Notifier::ErrUndefinedNotifier
- CLASS IRB::Notifier::ErrUnrecognizedLevel
- CLASS IRB::Notifier::LeveledNotifier
- CLASS IRB::Notifier::NoMsgNotifier

### Methods

- ::def_notifier

### Class/Module Index

Quicksearch

- Binding
- IRB::Abort
- IRB::Canvas
- IRB::Color
- IRB::Color::SymbolState
- IRB::Context
- IRB::ContextExtender
- IRB::ExtendCommandBundle
- IRB::FileInputMethod
- IRB::Frame
- IRB::Frame::FrameOverflow
- IRB::Frame::FrameUnderflow
- IRB::History
- IRB::InputMethod
- IRB::Inspector
- IRB::Irb
- IRB::IrbLoader
- IRB::JobManager
- IRB::LoadAbort
- IRB::MethodExtender
- IRB::Notifier
- IRB::Notifier::AbstractNotifier
- IRB::Notifier::CompositeNotifier
- IRB::Notifier::ErrUndefinedNotifier
- IRB::Notifier::ErrUnrecognizedLevel
- IRB::Notifier::LeveledNotifier
- IRB::Notifier::NoMsgNotifier
- IRB::OutputMethod
- IRB::OutputMethod::NotImplementedError
- IRB::ReadlineInputMethod
- IRB::ReidlineInputMethod
- IRB::RubyModel
- IRB::StdioInputMethod
- IRB::StdioOutputMethod
- IRB::Vec
- IRB::WorkSpace
- Object
- XMP
- XMP::StringInputMethod

No matching classes.

# IRB::Notifier

An output formatter used internally by the lexer.

### Public Class Methods

def_notifier(prefix = "", output_method = StdioOutputMethod.new) 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, `StdioOutputMethod` will be used, and all expressions will be sent directly to STDOUT without any additional formatting.

                   # File irb/notifier.rb, line 37
    def def_notifier(prefix = "", output_method = StdioOutputMethod.new)
      CompositeNotifier.new(prefix, output_method)
    end