Module: IRB::HistorySavingAbility
- Included in:
- IRT::History
- Defined in:
- lib/irt/extensions/irb.rb
Class Method Summary collapse
Class Method Details
.extended(obj) ⇒ Object
51 52 53 54 55 56 |
# File 'lib/irt/extensions/irb.rb', line 51 def HistorySavingAbility.extended(obj) # save_history has to be called just once at exit # IRB.conf[:AT_EXIT].push proc{obj.save_history} obj.load_history obj end |