Class: IRB::Notifier::NoMsgNotifier
- Inherits:
-
LeveledNotifier
- Object
- AbstractNotifier
- LeveledNotifier
- IRB::Notifier::NoMsgNotifier
- 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
Attributes inherited from AbstractNotifier
Instance Method Summary collapse
-
#initialize ⇒ NoMsgNotifier
constructor
Creates a new notifier that should not be used to output messages.
-
#notify? ⇒ Boolean
Ensures notifications are ignored, see AbstractNotifier#notify? for more information.
Methods inherited from LeveledNotifier
Methods inherited from AbstractNotifier
#exec_if, #pp, #ppx, #print, #printf, #printn, #puts
Constructor Details
#initialize ⇒ NoMsgNotifier
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.
229 230 231 |
# File 'lib/irb/notifier.rb', line 229 def notify? false end |