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 113
def initialize(base, level, prefix)
  super(prefix, base)

  @level = level
end
            

Public Instance Methods

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