Class: IRB::Notifier::NoMsgNotifier (Ruby 2.2.4)
Description: Class : IRB::Notifier::NoMsgNotifier - Ruby 2.2.4

- Home
- Core 2.2.4
- Std-lib 2.2.4
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- irb/notifier.rb

### Parent

IRB::Notifier::LeveledNotifier

### Methods

- ::new
- #notify?

### Class/Module Index

Quicksearch

- IRB::Abort
- IRB::Context
- IRB::ContextExtender
- IRB::ExtendCommandBundle
- IRB::FileInputMethod
- IRB::Frame
- IRB::InputMethod
- IRB::Inspector
- IRB::Irb
- IRB::IrbLoader
- IRB::JobManager
- IRB::LoadAbort
- IRB::MethodExtender
- IRB::Notifier
- IRB::Notifier::AbstractNotifier
- IRB::Notifier::CompositeNotifier
- IRB::Notifier::LeveledNotifier
- IRB::Notifier::NoMsgNotifier
- IRB::OutputMethod
- IRB::ReadlineInputMethod
- IRB::StdioInputMethod
- IRB::StdioOutputMethod
- IRB::WorkSpace
- Object
- XMP
- XMP::StringInputMethod

No matching classes.

# IRB::Notifier::NoMsgNotifier

NoMsgNotifier is a LeveledNotifier that's used as the default notifier when creating a new CompositeNotifier.

This notifier is used as the `zero` index, or level `0`, for IRB::Notifier::CompositeNotifier#notifiers, and will not output messages of any sort.

### Public Class Methods

new() click to toggle source

Creates a new notifier that should not be used to output messages.

                   # File irb/notifier.rb, line 216
    def initialize
      @base_notifier = nil
      @level = 0
      @prefix = ""
    end

### Public Instance Methods

notify?() click to toggle source

Ensures notifications are ignored, see IRB::Notifier::AbstractNotifier#notify? for more information.

                   # File irb/notifier.rb, line 224
    def notify?
      false
    end