D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ENV
/
Filename :
invert-c.ri
back
Copy
U:RDoc::AnyMethod[iI"invert:ETI"ENV::invert;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"3Returns a Hash whose keys are the ENV values, ;TI"6and whose values are the corresponding ENV names:;To:RDoc::Markup::Verbatim; [I"-ENV.replace('foo' => '0', 'bar' => '1') ;TI".ENV.invert # => {"1"=>"bar", "0"=>"foo"} ;T:@format0o; ; [I":For a duplicate ENV value, overwrites the hash entry:;To;; [I"-ENV.replace('foo' => '0', 'bar' => '0') ;TI""ENV.invert # => {"0"=>"foo"} ;T;0o; ; [I"@Note that the order of the ENV processing is OS-dependent, ;TI"Ewhich means that the order of overwriting is also OS-dependent. ;TI"7See {About Ordering}[rdoc-ref:ENV@About+Ordering].;T: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I",ENV.invert -> hash of value/name pairs ;T0[ I"();T@FI"ENV;TcRDoc::NormalClass00