Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
opt
/
ruby-2.6
/
usr
/
share
/
ri
/
2.6.0
/
system
/
String
/
//proc/self/root/proc/thread-self/root/opt/ruby-2.6/usr/share/ri/2.6.0/system/String/sum-i.ri
U:RDoc::AnyMethod[iI"sum:ETI"String#sum;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"NReturns a basic <em>n</em>-bit checksum of the characters in <i>str</i>, ;TI"Qwhere <em>n</em> is the optional <code>Integer</code> parameter, defaulting ;TI"Mto 16. The result is simply the sum of the binary value of each byte in ;TI"N<i>str</i> modulo <code>2**n - 1</code>. This is not a particularly good ;TI"checksum.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I" str.sum(n=16) -> integer ;T0[ I"(*args);T@FI"String;TcRDoc::NormalClassI" scanf;T0