lib/ronin/config.rb in ronin-1.0.0 vs lib/ronin/config.rb in ronin-1.1.0.rc1

- old
+ new

@@ -25,10 +25,11 @@ # # Configuration information for Ronin. # module Config include DataPaths + extend DataPaths::Finders # The users home directory HOME = Env.home # Ronin home directory @@ -59,10 +60,12 @@ # # @example Load the config file at `~/.ronin/config/sql.rb` # Config.load :sql # # => true # + # @api semipublic + # def Config.load(name=nil) path = if name CONFIG_DIR.join("#{name}.rb").expand_path else PATH.join('config.rb') @@ -77,9 +80,11 @@ # @param [String] sub_path # The sub-path within {TMP_DIR}. # # @return [Pathname] # The full path within {TMP_DIR}. + # + # @api semipublic # def Config.tmp_dir(sub_path=nil) if sub_path sub_path = File.expand_path(File.join('',sub_path)) path = TMP_DIR.join(sub_path)