Bug #8487 » 0001-Fix-documentation-for-Hash-nil.patch
object.c | ||
---|---|---|
* <i>arg</i> is <tt>nil</tt> or <tt>[]</tt>.
|
||
*
|
||
* Hash([]) #=> {}
|
||
* Hash(nil) #=> nil
|
||
* Hash(nil) #=> {}
|
||
* Hash(key: :value) #=> {:key => :value}
|
||
* Hash([1, 2, 3]) #=> TypeError
|
||
*/
|