From 7bc03759d975fa05b4e7c71a23c1c7eaf09a490d Mon Sep 17 00:00:00 2001 From: John Mair Date: Mon, 30 May 2011 03:37:12 +1200 Subject: [PATCH] defining history config option directly in Config class and documenting it --- lib/pry/config.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/pry/config.rb b/lib/pry/config.rb index f75629ec..bcd9370d 100644 --- a/lib/pry/config.rb +++ b/lib/pry/config.rb @@ -70,6 +70,17 @@ class Pry # Determines whether plugins should be loaded. # @return [Boolean] attr_accessor :should_load_plugins + + # Config option for history. + # sub-options include hist.file, hist.load, and hist.save + # hist.file is the file to save/load history too, e.g + # Pry.config.history.file = "~/.pry_history". + # hist.load is a boolean that determines whether history will be + # loaded from hist.file at session start. + # hist.save is a boolean that determines whether history will be + # saved to hist.file at session end. + # @return [OpenStruct] + attr_accessor :history end end