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
511 512 513 |
# File 'lib/utils/irb.rb', line 511 def history_file IRB.conf[:HISTORY_FILE] end |
#history_file=(hist) ⇒ Object
515 516 517 |
# File 'lib/utils/irb.rb', line 515 def history_file=(hist) IRB.conf[:HISTORY_FILE] = hist end |
#init_save_history ⇒ Object
492 493 494 495 496 |
# File 'lib/utils/irb.rb', line 492 def init_save_history unless (class<<@io;self;end).include?(HistorySavingAbility) @io.extend(HistorySavingAbility) end end |
#save_history ⇒ Object
498 499 500 |
# File 'lib/utils/irb.rb', line 498 def save_history IRB.conf[:SAVE_HISTORY] end |
#save_history=(val) ⇒ Object
502 503 504 505 506 507 508 509 |
# File 'lib/utils/irb.rb', line 502 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 |