⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Comparable
/
Edit File: clamp-i.ri
U:RDoc::AnyMethod[iI" clamp:ETI"Comparable#clamp;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"=In <code>(min, max)</code> form, returns _min_ if _obj_ ;TI"><code><=></code> _min_ is less than zero, _max_ if _obj_ ;TI"<<code><=></code> _max_ is greater than zero, and _obj_ ;TI"otherwise.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"%12.clamp(0, 100) #=> 12 ;TI"&523.clamp(0, 100) #=> 100 ;TI"$-3.123.clamp(0, 100) #=> 0 ;TI" ;TI"&'d'.clamp('a', 'f') #=> 'd' ;TI"&'z'.clamp('a', 'f') #=> 'f' ;T:@format0o; ; [ I"BIn <code>(range)</code> form, returns _range.begin_ if _obj_ ;TI"C<code><=></code> _range.begin_ is less than zero, _range.end_ ;TI"Eif _obj_ <code><=></code> _range.end_ is greater than zero, and ;TI"_obj_ otherwise.;T@o;; [I"%12.clamp(0..100) #=> 12 ;TI"&523.clamp(0..100) #=> 100 ;TI"$-3.123.clamp(0..100) #=> 0 ;TI" ;TI"&'d'.clamp('a'..'f') #=> 'd' ;TI"&'z'.clamp('a'..'f') #=> 'f' ;T; 0o; ; [I"EIf _range.begin_ is +nil+, it is considered smaller than _obj_, ;TI"@and if _range.end_ is +nil+, it is considered greater than ;TI"_obj_.;T@o;; [I"$-20.clamp(0..) #=> 0 ;TI"&523.clamp(..100) #=> 100 ;T; 0o; ; [I"AWhen _range.end_ is excluded and not +nil+, an exception is ;TI"raised.;T@o;; [I"-100.clamp(0...100) # ArgumentError;T; 0: @fileI" compar.c;T:0@omit_headings_from_table_of_contents_below0I"=obj.clamp(min, max) -> obj obj.clamp(range) -> obj ;T0[ I"(p1, p2 = v2);T@8FI"Comparable;TcRDoc::NormalModule00
Simpan