public Method

Module.freeze

mod.freeze

Prevents further modifications to mod.

Source Code

/*
*  call-seq:
*     mod.freeze
*  
*  Prevents further modifications to <i>mod</i>.
*/

static VALUE
rb_mod_freeze(mod)
   VALUE mod;
{
   rb_mod_to_s(mod);
   return rb_obj_freeze(mod);
}
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.