Skip to Content Skip to Search

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 CompositeNotifier#notifiers, and will not output messages of any sort.

Methods
N

Class Public methods

new()

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

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

Instance Public methods

notify?()

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

# File ruby/lib/irb/notifier.rb, line 223
def notify?
  false
end