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
452 453 454 |
# File 'lib/utils/irb.rb', line 452 def history_file IRB.conf[:HISTORY_FILE] end |
#history_file=(hist) ⇒ Object
456 457 458 |
# File 'lib/utils/irb.rb', line 456 def history_file=(hist) IRB.conf[:HISTORY_FILE] = hist end |
#init_save_history ⇒ Object
433 434 435 436 437 |
# File 'lib/utils/irb.rb', line 433 def init_save_history unless (class<<@io;self;end).include?(HistorySavingAbility) @io.extend(HistorySavingAbility) end end |
#save_history ⇒ Object
439 440 441 |
# File 'lib/utils/irb.rb', line 439 def save_history IRB.conf[:SAVE_HISTORY] end |
#save_history=(val) ⇒ Object
443 444 445 446 447 448 449 450 |
# File 'lib/utils/irb.rb', line 443 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 |