lib/cliutils/prefs.rb in cliutils-1.0.5 vs lib/cliutils/prefs.rb in cliutils-1.0.6
- old
+ new
@@ -3,10 +3,20 @@
module CLIUtils
# Engine to derive preferences from a YAML file, deliver
# those to a user via a prompt, and collect the results.
class Prefs
include PrettyIO
- attr_reader :answers, :config_path, :prompts
+ # Stores answers to prompt questions.
+ # @return [Hash]
+ attr_reader :answers
+
+ # Stores the filepath (if it exists) to the prefs file.
+ # @return [String]
+ attr_reader :config_path
+
+ # Stores answers to prompt questions.
+ # @return [Hash]
+ attr_reader :prompts
# Reads prompt data from and stores it.
# @param [<String, Hash, Array>] data Filepath to YAML, Hash, or Array
# @return [void]
def initialize(data)