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
432 433 434 |
# File 'lib/utils/irb.rb', line 432 def history_file IRB.conf[:HISTORY_FILE] end |
#history_file=(hist) ⇒ Object
436 437 438 |
# File 'lib/utils/irb.rb', line 436 def history_file=(hist) IRB.conf[:HISTORY_FILE] = hist end |
#init_save_history ⇒ Object
413 414 415 416 417 |
# File 'lib/utils/irb.rb', line 413 def init_save_history unless @io.singleton_class < HistorySavingAbility @io.extend HistorySavingAbility end end |
#save_history ⇒ Object
419 420 421 |
# File 'lib/utils/irb.rb', line 419 def save_history IRB.conf[:SAVE_HISTORY] end |
#save_history=(val) ⇒ Object
423 424 425 426 427 428 429 430 |
# File 'lib/utils/irb.rb', line 423 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 |