HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Hash/keep_if-i.ri
U:RDoc::AnyMethod[iI"keep_if:ETI"Hash#keep_if;TF:publico:RDoc::Markup::Document:@parts[	o:RDoc::Markup::Paragraph;	[I".Calls the block for each key-value pair; ;TI"<retains the entry if the block returns a truthy value; ;TI"1otherwise deletes the entry; returns +self+.;To:RDoc::Markup::Verbatim;	[I""h = {foo: 0, bar: 1, baz: 2}
;TI"Mh.keep_if { |key, value| key.start_with?('b') } # => {:bar=>1, :baz=>2}
;T:@format0o;
;	[I"1Returns a new \Enumerator if no block given:;To;;	[I""h = {foo: 0, bar: 1, baz: 2}
;TI"Ke = h.keep_if # => #<Enumerator: {:foo=>0, :bar=>1, :baz=>2}:keep_if>
;TI"Ie.each { |key, value| key.start_with?('b') } # => {:bar=>1, :baz=>2};T;0:
@fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"Mhash.keep_if {|key, value| ... } -> self
hash.keep_if -> new_enumerator
;T0[I"();T@FI"	Hash;TcRDoc::NormalClass00