D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ENV
/
Filename :
reject-c.ri
back
Copy
U:RDoc::AnyMethod[iI"reject:ETI"ENV::reject;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"OYields each environment variable name and its value as a 2-element Array. ;TI"=Returns a Hash whose items are determined by the block. ;TI"]When the block returns a truthy value, the name/value pair is added to the return Hash; ;TI"#otherwise the pair is ignored:;To:RDoc::Markup::Verbatim; [I";ENV.replace('foo' => '0', 'bar' => '1', 'baz' => '2') ;TI"JENV.reject { |name, value| name.start_with?('b') } # => {"foo"=>"0"} ;T:@format0o; ; [I"-Returns an Enumerator if no block given:;To;; [I"e = ENV.reject ;TI"Ee.each { |name, value| name.start_with?('b') } # => {"foo"=>"0"};T;0: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"xENV.reject { |name, value| block } -> hash of name/value pairs ENV.reject -> an_enumerator ;T0[ I"();T@FI"ENV;TcRDoc::NormalClass00