Class: IRB::Notifier::NoMsgNotifier

Inherits:
LeveledNotifier show all
Defined in:
lib/irb/notifier.rb

Overview

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.

Instance Attribute Summary

Attributes inherited from LeveledNotifier

#level

Attributes inherited from AbstractNotifier

#prefix

Instance Method Summary collapse

Methods inherited from LeveledNotifier

#<=>

Methods inherited from AbstractNotifier

#exec_if, #pp, #ppx, #print, #printf, #printn, #puts

Constructor Details

#initializeNoMsgNotifier

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



221
222
223
224
225
# File 'lib/irb/notifier.rb', line 221

def initialize
  @base_notifier = nil
  @level = 0
  @prefix = ""
end

Instance Method Details

#notify?Boolean

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

Returns:

  • (Boolean)


229
230
231
# File 'lib/irb/notifier.rb', line 229

def notify?
  false
end