module Ronin::Support::Home
Represents the user’s home directory.
@api public
@since 1.0.0
Constants
Public Class Methods
cache_dir(subdir)
click to toggle source
Returns the path to the sub-directory within the ‘~/.cache/` directory.
@param [String] subdir
The sub-directory.
@return [String]
The path to the `~/.cache/<subdir>` directory.
# File lib/ronin/support/home.rb, line 46 def self.cache_dir(subdir) File.join(CACHE_DIR,subdir) end
config_dir(subdir)
click to toggle source
Returns the path to the sub-directory within the ‘~/.config/` directory.
@param [String] subdir
The sub-directory.
@return [String]
The path to the `~/.config/<subdir>` directory.
# File lib/ronin/support/home.rb, line 64 def self.config_dir(subdir) File.join(CONFIG_DIR,subdir) end