class IRB::Notifier::LeveledNotifier
CompositeNotifier#notifiers.
A leveled notifier is comparable to the composite group from
def <=>(other)
notifier.
Compares the level of this notifier object with the given +other+
def <=>(other) @level <=> other.level end
def initialize(base, level, prefix)
CompositeNotifier group to determine whether or not to output
The given +level+ is used to compare other leveled notifiers in the
send to AbstractNotifier.new
Create a new leveled notifier with the given +base+, and +prefix+ to
def initialize(base, level, prefix) super(prefix, base) @level = level end
def notify?
Whether to output messages to the output method, depending on the level
def notify? @base_notifier.level >= self end