Module: MyHelp::GetConfig

Included in:
CLI, Git
Defined in:
lib/my_help/git_cli.rb

Instance Method Summary collapse

Instance Method Details

#get_configObject

(args)



3
4
5
6
7
# File 'lib/my_help/git_cli.rb', line 3

def get_config #(args)
  parent_help_dir = options["help_dir"] || ""
  parent_help_dir = ENV["HOME"] unless File.exist?(parent_help_dir)
  return Config.new(parent_help_dir)
end