Class: IRB::Context
Instance Method Summary collapse
- #history_file ⇒ Object
- #history_file=(hist) ⇒ Object
- #init_save_history ⇒ Object
- #save_history ⇒ Object
- #save_history=(val) ⇒ Object
Instance Method Details
#history_file ⇒ Object
513 514 515 |
# File 'lib/utils/irb.rb', line 513 def history_file IRB.conf[:HISTORY_FILE] end |
#history_file=(hist) ⇒ Object
517 518 519 |
# File 'lib/utils/irb.rb', line 517 def history_file=(hist) IRB.conf[:HISTORY_FILE] = hist end |
#init_save_history ⇒ Object
494 495 496 497 498 |
# File 'lib/utils/irb.rb', line 494 def init_save_history unless (class<<@io;self;end).include?(HistorySavingAbility) @io.extend(HistorySavingAbility) end end |
#save_history ⇒ Object
500 501 502 |
# File 'lib/utils/irb.rb', line 500 def save_history IRB.conf[:SAVE_HISTORY] end |
#save_history=(val) ⇒ Object
504 505 506 507 508 509 510 511 |
# File 'lib/utils/irb.rb', line 504 def save_history=(val) IRB.conf[:SAVE_HISTORY] = val if val main_context = IRB.conf[:MAIN_CONTEXT] main_context = self unless main_context main_context.init_save_history end end |