public Method

Array.frozen?

array.frozen?   true or false

Return true if this array is frozen (or temporarily frozen while being sorted).

Source Code

/*
*  call-seq:
*     array.frozen?  -> true or false
*
*  Return <code>true</code> if this array is frozen (or temporarily frozen
*  while being sorted).
*/

static VALUE
rb_ary_frozen_p(ary)
   VALUE ary;
{
   if (OBJ_FROZEN(ary)) return Qtrue;
   if (FL_TEST(ary, ARY_TMPLOCK)) return Qtrue;
   return Qfalse;
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.