⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
ENV
/
Edit File: store-c.ri
U:RDoc::AnyMethod[iI" store:ETI"ENV::store;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"'ENV.store is an alias for ENV.[]=.;To:RDoc::Markup::BlankLine o; ; [I"WCreates, updates, or deletes the named environment variable, returning the value. ;TI"9Both +name+ and +value+ may be instances of String. ;TI"KSee {Valid Names and Values}[#class-ENV-label-Valid+Names+and+Values].;T@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"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.store(name, value) -> value;T0[ I" (p1, p2);T@[FI"ENV;TcRDoc::NormalClass00
Simpan