PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ENV
U:RDoc::AnyMethod[iI" assoc:ETI"ENV::assoc;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"YReturns a 2-element Array containing the name and value of the environment variable ;TI"for +name+ if it exists:;To:RDoc::Markup::Verbatim; [I"-ENV.replace('foo' => '0', 'bar' => '1') ;TI"(ENV.assoc('foo') # => ['foo', '0'] ;T:@format0o; ; [I"YReturns +nil+ if +name+ is a valid String and there is no such environment variable.;To:RDoc::Markup::BlankLine o; ; [I"fReturns +nil+ if +name+ is the empty String or is a String containing character <code>'='</code>.;T@o; ; [I"^Raises an exception if +name+ is a String containing the NUL character <code>"\0"</code>:;To;; [I"`ENV.assoc("\0") # Raises ArgumentError (bad environment variable name: contains null byte) ;T;0o; ; [I"PRaises an exception if +name+ has an encoding that is not ASCII-compatible:;To;; [I">ENV.assoc("\xa1\xa1".force_encoding(Encoding::UTF_16LE)) ;TI"c# Raises ArgumentError (bad environment variable name: ASCII incompatible encoding: UTF-16LE) ;T;0o; ; [I"3Raises an exception if +name+ is not a String:;To;; [I"UENV.assoc(Object.new) # TypeError (no implicit conversion of Object into String);T;0: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"-ENV.assoc(name) -> [name, value] or nil ;T0[ I" (p1);T@-FI"ENV;TcRDoc::NormalClass00
[-] reject-c.ri
[edit]
[-] to_s-c.ri
[edit]
[-] each_value-c.ri
[edit]
[-] to_h-c.ri
[edit]
[-] size-c.ri
[edit]
[-] values_at-c.ri
[edit]
[-] replace-c.ri
[edit]
[-] delete-c.ri
[edit]
[-] delete_if-c.ri
[edit]
[-] clone-c.ri
[edit]
[-] merge%21-c.ri
[edit]
[-] to_hash-c.ri
[edit]
[-] shift-c.ri
[edit]
[-] select%21-c.ri
[edit]
[-] member%3f-c.ri
[edit]
[-] length-c.ri
[edit]
[-] inspect-c.ri
[edit]
[-] has_value%3f-c.ri
[edit]
[-] keys-c.ri
[edit]
[-] keep_if-c.ri
[edit]
[-] freeze-c.ri
[edit]
[-] value%3f-c.ri
[edit]
[-] except-c.ri
[edit]
[-] each_pair-c.ri
[edit]
[-] rassoc-c.ri
[edit]
[-] filter%21-c.ri
[edit]
[-] each-c.ri
[edit]
[-] filter-c.ri
[edit]
[-] store-c.ri
[edit]
[-] key-c.ri
[edit]
[-] select-c.ri
[edit]
[-] reject%21-c.ri
[edit]
[-] invert-c.ri
[edit]
[-] cdesc-ENV.ri
[edit]
[-] clear-c.ri
[edit]
[-] to_a-c.ri
[edit]
[-] dup-c.ri
[edit]
[-] each_key-c.ri
[edit]
[-] empty%3f-c.ri
[edit]
[-] values-c.ri
[edit]
[+]
..
[-] update-c.ri
[edit]
[-] %5b%5d%3d-c.ri
[edit]
[-] slice-c.ri
[edit]
[-] fetch-c.ri
[edit]
[-] assoc-c.ri
[edit]
[-] rehash-c.ri
[edit]
[-] %5b%5d-c.ri
[edit]
[-] key%3f-c.ri
[edit]
[-] has_key%3f-c.ri
[edit]
[-] include%3f-c.ri
[edit]