Class: IRB::Notifier::CompositeNotifier
- Inherits:
-
AbstractNotifier
- Object
- AbstractNotifier
- IRB::Notifier::CompositeNotifier
- Defined in:
- lib/rdoc/notifier.rb
Instance Attribute Summary (collapse)
-
- (Object) level_notifier
(also: #level)
Returns the value of attribute level_notifier.
-
- (Object) notifiers
readonly
Returns the value of attribute notifiers.
Attributes inherited from AbstractNotifier
Instance Method Summary (collapse)
- - (Object) def_notifier(level, prefix = "")
-
- (CompositeNotifier) initialize(prefix, base_notifier)
constructor
A new instance of CompositeNotifier.
Methods inherited from AbstractNotifier
#exec_if, #notify?, #pp, #ppx, #print, #printf, #printn, #puts
Constructor Details
- (CompositeNotifier) initialize(prefix, base_notifier)
A new instance of CompositeNotifier
76 77 78 79 80 81 |
# File 'lib/rdoc/notifier.rb', line 76 def initialize(prefix, base_notifier) super @notifiers = [D_NOMSG] @level_notifier = D_NOMSG end |
Instance Attribute Details
- (Object) level_notifier Also known as: level
Returns the value of attribute level_notifier
91 92 93 |
# File 'lib/rdoc/notifier.rb', line 91 def level_notifier @level_notifier end |
- (Object) notifiers (readonly)
Returns the value of attribute notifiers
83 84 85 |
# File 'lib/rdoc/notifier.rb', line 83 def notifiers @notifiers end |
Instance Method Details
- (Object) def_notifier(level, prefix = "")
85 86 87 88 89 |
# File 'lib/rdoc/notifier.rb', line 85 def def_notifier(level, prefix = "") notifier = LeveledNotifier.new(self, level, prefix) @notifiers[level] = notifier notifier end |