File: C:/Ruby27-x64/share/ri/2.7.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"RReturns the name of the first environment variable with +value+ if it exists:;To:RDoc::Markup::Verbatim; [I"-ENV.replace('foo' => '0', 'bar' => '1')
;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:;To;; [I"ENV.key('2') # => nil
;T;0o;
; [I"4Raises an exception if +value+ is not a String:;To;; [I"ZENV.key(Object.new) # raises TypeError (no implicit conversion of Object into String);T;0:
@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