PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ENV
U:RDoc::AnyMethod[iI" store:ETI"ENV::store;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"WCreates, updates, or deletes the named environment variable, returning the value. ;TI"9Both +name+ and +value+ may be instances of String. ;TI"GSee {Valid Names and Values}[rdoc-ref:ENV@Valid+Names+and+Values].;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"6If the named environment variable does not exist:;To;; ;;[o;;0; [o; ; [I"'If +value+ is +nil+, does nothing.;To:RDoc::Markup::Verbatim; [ I"ENV.clear ;TI"ENV['foo'] = nil # => nil ;TI"$ENV.include?('foo') # => false ;TI"$ENV.store('bar', nil) # => nil ;TI"$ENV.include?('bar') # => false ;T:@format0o;;0; [o; ; [I"WIf +value+ is not +nil+, creates the environment variable with +name+ and +value+:;To;; [I"## Create 'foo' using ENV.[]=. ;TI"ENV['foo'] = '0' # => '0' ;TI"ENV['foo'] # => '0' ;TI"%# Create 'bar' using ENV.store. ;TI"$ENV.store('bar', '1') # => '1' ;TI"ENV['bar'] # => '1' ;T;0o;;0; [o; ; [I".If the named environment variable exists:;To;; ;;[o;;0; [o; ; [I"RIf +value+ is not +nil+, updates the environment variable with value +value+:;To;; [I"## Update 'foo' using ENV.[]=. ;TI"ENV['foo'] = '2' # => '2' ;TI"ENV['foo'] # => '2' ;TI"%# Update 'bar' using ENV.store. ;TI"$ENV.store('bar', '3') # => '3' ;TI"ENV['bar'] # => '3' ;T;0o;;0; [o; ; [I";If +value+ is +nil+, deletes the environment variable:;To;; [I"## Delete 'foo' using ENV.[]=. ;TI"ENV['foo'] = nil # => nil ;TI"$ENV.include?('foo') # => false ;TI"%# Delete 'bar' using ENV.store. ;TI"$ENV.store('bar', nil) # => nil ;TI"$ENV.include?('bar') # => false ;T;0o; ; [I":Raises an exception if +name+ or +value+ is invalid. ;TI"KSee {Invalid Names and Values}[rdoc-ref:ENV@Invalid+Names+and+Values].;T: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"EENV[name] = value -> value ENV.store(name, value) -> value ;T0[ I" (p1, p2);T@XFI"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]