Class IRB::Notifier::LeveledNotifier
In: lib/irb/notifier.rb
Parent: AbstructNotifier

Methods

<=>   new   notify?  

Included Modules

Comparable

Attributes

level  [R] 

Public Class methods

[Source]

     # File lib/irb/notifier.rb, line 114
114:       def initialize(base, level, prefix)
115:         super(prefix, base)
116:         
117:         @level = level
118:       end

Public Instance methods

[Source]

     # File lib/irb/notifier.rb, line 122
122:       def <=>(other)
123:         @level <=> other.level
124:       end

[Source]

     # File lib/irb/notifier.rb, line 126
126:       def notify?
127:         @base_notifier.level >= self
128:       end

[Validate]