Class: IRB::Irb
- Inherits:
-
Object
- Object
- IRB::Irb
- Defined in:
- lib/irb_callbacks.rb
Instance Method Summary collapse
- #original_output_value ⇒ Object
-
#output_value(*args, &block) ⇒ Object
Add before_output, after_output, and around_output callbacks without damaging original behavior.
Instance Method Details
#original_output_value ⇒ Object
74 |
# File 'lib/irb_callbacks.rb', line 74 alias original_output_value output_value |
#output_value(*args, &block) ⇒ Object
Add before_output, after_output, and around_output callbacks without damaging original behavior.
78 79 80 81 82 83 84 85 86 |
# File 'lib/irb_callbacks.rb', line 78 def output_value(*args, &block) IRB::before_output value = nil IRB::around_output do value = original_output_value(*args, &block) end IRB::after_output value end |