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/Kernel/then-i.ri
U:RDoc::AnyMethod[iI"	then:ETI"Kernel#then;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"BYields self to the block and returns the result of the block.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"83.next.then {|x| x**x }.to_s             #=> "256"
;T:@format0o;
;	[I"<Good usage for +then+ is value piping in method chains:;T@o;;	[I"require 'open-uri'
;TI"require 'json'
;TI"
;TI"construct_url(arguments).
;TI"%  then {|url| open(url).read }.
;TI"/  then {|response| JSON.parse(response) }
;T;
0o;
;	[I"AWhen called without block, the method returns +Enumerator+, ;TI"5which can be used, for example, for conditional ;TI"circuit-breaking:;T@o;;	[	I"# meets condition, no-op
;TI"-1.then.detect(&:odd?)            # => 1
;TI"+# does not meet condition, drop value
;TI".2.then.detect(&:odd?)            # => nil;T;
0:
@fileI"kernel.rb;T:0@omit_headings_from_table_of_contents_below0I"1obj.then {|x| block }          -> an_object
;TI"	self;T[I"();T@(FI"Kernel;TcRDoc::NormalModule00