Class: RubyLex
- Inherits:
-
Object
- Object
- RubyLex
- Defined in:
- lib/irb_callbacks.rb
Instance Method Summary collapse
-
#lex(*args, &block) ⇒ Object
Add before_prompt, after_prompt, and around_prompt callbacks without damaging original behavior.
- #original_lex ⇒ Object
Instance Method Details
#lex(*args, &block) ⇒ Object
Add before_prompt, after_prompt, and around_prompt callbacks without damaging original behavior.
61 62 63 64 65 66 67 68 69 |
# File 'lib/irb_callbacks.rb', line 61 def lex(*args, &block) IRB::before_prompt value = nil IRB::around_prompt do value = original_lex(*args, &block) end IRB::after_prompt value end |
#original_lex ⇒ Object
57 |
# File 'lib/irb_callbacks.rb', line 57 alias original_lex lex |