ENV.delete_if { |name, value| } â HashENV.delete_if â Enumerator Class Public methods Deletes every environment variable for which the block evaluates to true. If no block is given an enumerator is returned instead.
ENV.each { |name, value| } â HashENV.each â EnumeratorENV.each_pair { |name, value| } â HashENV.each_pair â Enumerator Class Public methods Yields each environment variable name and value. If no block is given an Enumerator is returned.
ENV.each_key { |name| } â HashENV.each_key â Enumerator Class Public methods Yields each environment variable name. An Enumerator is returned if no block is given.
ENV.each_pair { |name, value| } â HashENV.each_pair â Enumerator Class Public methods Yields each environment variable name and value. If no block is given an Enumerator is returned.
ENV.each_value { |value| } â HashENV.each_value â Enumerator Class Public methods Yields each environment variable value. An Enumerator is returned if no block was given.
ENV.empty? â true or false Class Public methods Returns true when there are no environment variables
ENV.fetch(name) â valueENV.fetch(name, default) â valueENV.fetch(name) { |missing_name| ... } â value Class Public methods Retrieves the environment variable name. If the given name does not exist and neither default nor a block a provided an IndexError is raised. If a block is given it is called with the missing name to provide a value. If a default value is given it will be returned when no block is given.
ENV.has_key?(name) â true or false Class Public methods Returns true if there is an environment variable with the given name.
ENV.has_value?(value) â true or false Class Public methods Returns true if there is an environment variable with the given value.
ENV.include?(name) â true or false Class Public methods Returns true if there is an environment variable with the given name.
Page 214 of 11844