Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
ENV
/
//opt/alt/ruby27/share/ri/system/ENV/delete-c.ri
U:RDoc::AnyMethod[iI"delete:ETI"ENV::delete;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"UDeletes the environment variable with +name+ if it exists and returns its value:;To:RDoc::Markup::Verbatim; [I"ENV['foo'] = '0' ;TI" ENV.delete('foo') # => '0' ;T:@format0o; ; [I"DReturns +nil+ if the named environment variable does not exist:;To;; [I" ENV.delete('foo') # => nil ;T;0o; ; [I"CIf a block given and the environment variable does not exist, ;TI"2yields +name+ to the block and returns +nil+:;To;; [I"5ENV.delete('foo') { |name| puts name } # => nil ;TI" foo ;T;0o; ; [I";If a block given and the environment variable exists, ;TI"Qdeletes the environment variable and returns its value (ignoring the block):;To;; [I"ENV['foo'] = '0' ;TI":ENV.delete('foo') { |name| fail 'ignored' } # => "0" ;T;0o; ; [I"/Raises an exception if +name+ is invalid. ;TI"OSee {Invalid Names and Values}[#class-ENV-label-Invalid-Names+and+Values].;T: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"[ENV.delete(name) -> value ENV.delete(name) { |name| block } -> value ;T0[ I" (p1);T@,FI"ENV;TcRDoc::NormalClass00