Function rb_Array

Source
pub unsafe extern "C" fn rb_Array(val: VALUE) -> VALUE
Expand description

This is the logic behind Kernel#Array. Arguments are converted by first trying #to_ary, then #to_a, and if both failed, returns an array of length 1 that contains the passed argument as the sole contents.

ยง@param[in] val An object to convert. @return An instance of ::rb_cArray.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3