module CommandKit::Env::Home
Provides access to the `HOME` environment variable.
## Environment Variables
-
`HOME` - The absolute path to the user's home directory.
Attributes
home_dir[R]
The home directory.
@return [String]
@api public
Public Class Methods
new(**kwargs)
click to toggle source
Initializes {#home_dir} to either `env` or {ClassMethods#home_dir self.class.home_dir}.
@param [Hash{Symbol => Object}] kwargs
Additional keyword arguments.
@api public
Calls superclass method
CommandKit::Env::new
# File lib/command_kit/env/home.rb, line 73 def initialize(**kwargs) super(**kwargs) @home_dir = env.fetch('HOME') { self.class.home_dir } end