File: //usr/share/ri/3.0.0/system/ENV/key-c.ri
U:RDoc::AnyMethod[iI"key:ETI"
ENV::key;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"SReturns the name of the first environment variable with +value+, if it exists:;To:RDoc::Markup::Verbatim; [I"-ENV.replace('foo' => '0', 'bar' => '0')
;TI"ENV.key('0') # => "foo"
;T:@format0o;
; [I"LThe order in which environment variables are examined is OS-dependent. ;TI";See {About Ordering}[#class-ENV-label-About+Ordering].;To:RDoc::Markup::BlankLine o;
; [I"-Returns +nil+ if there is no such value.;T@o;
; [I"/Raises an exception if +value+ is invalid:;To;; [I"[ENV.key(Object.new) # raises TypeError (no implicit conversion of Object into String)
;T;0o;
; [I"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.key(value) -> name or nil
;T0[ I" (p1);T@#FI"ENV;TcRDoc::NormalClass00