In Files

  • irb/notifier.rb

Methods

Included Modules

IRB::Notifier::LeveledNotifier

Attributes

level[R]

Public Class Methods

new(base, level, prefix) click to toggle source
 
               # File irb/notifier.rb, line 114
def initialize(base, level, prefix)
  super(prefix, base)
  
  @level = level
end
            

Public Instance Methods

<=>(other) click to toggle source
 
               # File irb/notifier.rb, line 122
def <=>(other)
  @level <=> other.level
end
            
notify?() click to toggle source
 
               # File irb/notifier.rb, line 126
def notify?
  @base_notifier.level >= self
end