⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
String
/
Edit File: upto-i.ri
U:RDoc::AnyMethod[iI" upto:ETI"String#upto;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"AWith a block given, calls the block with each \String value ;TI"2returned by successive calls to String#succ; ;TI"Kthe first value is +self+, the next is <tt>self.succ</tt>, and so on; ;TI"Cthe sequence terminates when value +other_string+ is reached; ;TI"returns +self+:;To:RDoc::Markup::Verbatim; [I"3'a8'.upto('b6') {|s| print s, ' ' } # => "a8" ;T:@format0o; ; [I"Output:;To;; [I" a8 a9 b0 b1 b2 b3 b4 b5 b6 ;T;0o; ; [I"TIf argument +exclusive+ is given as a truthy object, the last value is omitted:;To;; [I"9'a8'.upto('b6', true) {|s| print s, ' ' } # => "a8" ;T;0o; ; [I"Output:;To;; [I"a8 a9 b0 b1 b2 b3 b4 b5 ;T;0o; ; [I"EIf +other_string+ would not be reached, does not call the block:;To;; [I""'25'.upto('5') {|s| fail s } ;TI""'aa'.upto('a') {|s| fail s } ;T;0o; ; [I"4With no block given, returns a new \Enumerator:;To;; [I"8'a8'.upto('b6') # => #<Enumerator: "a8":upto("b6")>;T;0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"�string.upto(other_string, exclusive = false) {|string| ... } -> self string.upto(other_string, exclusive = false) -> new_enumerator ;T0[ I"(p1, p2 = v2);T@4FI"String;TcRDoc::NormalClass00
Simpan