class IRB::Notifier::LeveledNotifier

CompositeNotifier#notifiers.
A leveled notifier is comparable to the composite group from

def <=>(other)

See the Comparable module for more information.

notifier.
Compares the level of this notifier object with the given +other+
def <=>(other)
  @level <=> other.level
end

def initialize(base, level, prefix)

notifications.
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?

of this notifier object.
Whether to output messages to the output method, depending on the level
def notify?
  @base_notifier.level >= self
end