Module: EnvMethods

Includes:
Kernel
Included in:
EnvActivation, SharedEnvExtension
Defined in:
extend/ENV.rbi

Instance Method Summary collapse

Methods included from Kernel

#disk_usage_readable, #ensure_executable!, #ensure_formula_installed!, #exec_browser, #exec_editor, #ignore_interrupts, #interactive_shell, #number_readable, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #paths, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled, #quiet_system, #redact_secrets, #redirect_stdout, #require?, #safe_system, #tap_and_name_comparison, #truncate_text_to_approximate_size, #which, #which_all, #which_editor, #with_custom_locale, #with_env, #with_homebrew_path

Instance Method Details

#[](key) ⇒ String?

Parameters:

Returns:



10
# File 'extend/ENV.rbi', line 10

def [](key); end

#[]=(key, value) ⇒ String?

Parameters:

Returns:



16
# File 'extend/ENV.rbi', line 16

def []=(key, value); end

#delete(key) ⇒ String?

Parameters:

Returns:



25
# File 'extend/ENV.rbi', line 25

def delete(key); end

#each_key(&block) ⇒ void

This method returns an undefined value.

Parameters:

  • block (T.proc.params(arg0: String).void)


22
# File 'extend/ENV.rbi', line 22

def each_key(&block); end

#fetch(key) ⇒ String

Parameters:

Returns:



13
# File 'extend/ENV.rbi', line 13

def fetch(key); end

#key?(key) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


7
# File 'extend/ENV.rbi', line 7

def key?(key); end

#replace(other) ⇒ Sorbet::Private::Static::ENVClass



31
# File 'extend/ENV.rbi', line 31

def replace(other); end

#select(&block) ⇒ Hash{String => String}

Parameters:

  • block (T.proc.params(arg0: [String, String]).returns(T::Boolean))

Returns:



19
# File 'extend/ENV.rbi', line 19

def select(&block); end

#to_hashHash{String => String}

Returns:



34
# File 'extend/ENV.rbi', line 34

def to_hash; end