Class: IRB::Notifier::NoMsgNotifier
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
LeveledNotifier,
AbstractNotifier
|
|
Instance Chain:
self,
LeveledNotifier,
Comparable,
AbstractNotifier
|
|
Inherits: |
IRB::Notifier::LeveledNotifier
|
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.
Class Method Summary
-
.new ⇒ NoMsgNotifier
constructor
Creates a new notifier that should not be used to output messages.
LeveledNotifier - Inherited
.new | Create a new leveled notifier with the given |
AbstractNotifier - Inherited
.new | Creates a new ::IRB::Notifier object. |
Instance Attribute Summary
-
#notify? ⇒ Boolean
readonly
Ensures notifications are ignored, see AbstractNotifier#notify? for more information.
LeveledNotifier - Inherited
#level | The current level of this notifier object. |
#notify? | Whether to output messages to the output method, depending on the level of this notifier object. |
AbstractNotifier - Inherited
#notify? | A wrapper method used to determine whether notifications are enabled. |
#prefix | The |
Instance Method Summary
LeveledNotifier - Inherited
#<=> | Compares the level of this notifier object with the given |
AbstractNotifier - Inherited
#exec_if | Execute the given block if notifications are enabled. |
#pp | Same as |
#ppx | Same as |
See OutputMethod#print for more detail. |
|
#printf | See OutputMethod#printf for more detail. |
#printn | See OutputMethod#printn for more detail. |
#puts | See OutputMethod#puts for more detail. |
Constructor Details
.new ⇒ NoMsgNotifier
Creates a new notifier that should not be used to output messages.
# File 'lib/irb/notifier.rb', line 217
def initialize @base_notifier = nil @level = 0 @prefix = "" end
Instance Attribute Details
#notify? ⇒ Boolean
(readonly)
Ensures notifications are ignored, see AbstractNotifier#notify? for more information.
# File 'lib/irb/notifier.rb', line 225
def notify? false end