HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/ri/2.7.0/system/Comparable/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::BlankLineo: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