public Method

Object.frozen?

obj.frozen?     true or false

Returns the freeze status of obj.

a = [ "a", "b", "c" ]
a.freeze    #=> ["a", "b", "c"]
a.frozen?   #=> true

Source Code

/*
*  call-seq:
*     obj.frozen?    => true or false
*  
*  Returns the freeze status of <i>obj</i>.
*     
*     a = [ "a", "b", "c" ]
*     a.freeze    #=> ["a", "b", "c"]
*     a.frozen?   #=> true
*/

static VALUE
rb_obj_frozen_p(obj)
   VALUE obj;
{
   if (OBJ_FROZEN(obj)) 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.