D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Hash
/
Filename :
try_convert-c.ri
back
Copy
U:RDoc::AnyMethod[iI"try_convert:ETI"Hash::try_convert;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"0If +obj+ is a +Hash+ object, returns +obj+.;To:RDoc::Markup::BlankLine o; ; [I"7Otherwise if +obj+ responds to <tt>:to_hash</tt>, ;TI"7calls <tt>obj.to_hash</tt> and returns the result.;T@o; ; [I"AReturns +nil+ if +obj+ does not respond to <tt>:to_hash</tt>;T@o; ; [I"MRaises an exception unless <tt>obj.to_hash</tt> returns a +Hash+ object.;T: @fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"4Hash.try_convert(obj) -> obj, new_hash, or nil ;T0[ I" (p1);T@FI" Hash;TcRDoc::NormalClass00