⚝
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 :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Comparable
/
View File Name :
clamp-i.ri
U:RDoc::AnyMethod[iI" clamp:ETI"Comparable#clamp;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"=In
(min, max)
form, returns _min_ if _obj_ ;TI">
<=>
_min_ is less than zero, _max_ if _obj_ ;TI"<
<=>
_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
(range)
form, returns _range.begin_ if _obj_ ;TI"C
<=>
_range.begin_ is less than zero, _range.end_ ;TI"Eif _obj_
<=>
_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