D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
sum-i.ri
back
Copy
U:RDoc::AnyMethod[iI"sum:ETI"String#sum;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"CReturns a basic +n+-bit checksum of the characters in +self+; ;TI"Ithe checksum is the sum of the binary value of each byte in +self+, ;TI"modulo <tt>2**n - 1</tt>:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"'hello'.sum # => 532 ;TI"'hello'.sum(4) # => 4 ;TI"'hello'.sum(64) # => 532 ;TI"#'тест'.sum # => 1405 ;TI"&'こんにちは'.sum # => 2582 ;T:@format0o; ; [I"0This is not a particularly strong checksum.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"sum(n = 16) -> integer ;T0[ I"(*args);T@FI"String;TcRDoc::NormalClass00