pub unsafe extern "C" fn rb_Hash(val: VALUE) -> VALUEExpand description
This is the logic behind Kernel#Hash. Arguments are converted by first
trying #to_hash. if it failed, and the argument is either ::RUBY_Qnil or
an empty array, returns an empty hash. Otherwise an exception is raised.
ยง@param[in] val An object to convert.
@exception rb_eTypeError No conversion defined.
@return An instance of ::rb_cHash.
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3