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.


216
217
218
219
220
# File 'lib/irb/notifier.rb', line 216

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

Instance Method Details

#notify?Boolean

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


224
225
226
# File 'lib/irb/notifier.rb', line 224

def notify?
	false
end