method
frozen?
v1_9_2_180 -
Show latest stable
- Class:
Object
frozen?()public
Returns the freeze status of obj.
a = [ "a", "b", "c" ] a.freeze #=> ["a", "b", "c"] a.frozen? #=> true
VALUE
rb_obj_frozen_p(VALUE obj)
{
if (OBJ_FROZEN(obj)) return Qtrue;
if (SPECIAL_CONST_P(obj)) {
if (!immediate_frozen_tbl) return Qfalse;
if (st_lookup(immediate_frozen_tbl, obj, 0)) return Qtrue;
}
return Qfalse;
} Related methods
- Instance methods
- !~
- <=>
- ===
- =~
- CSV
- DelegateClass
- __getobj__
- __id__
- __setobj__
- check_signedness
- check_sizeof
- chmod
- class
- clone
- cp
- create_docfile
- create_header
- create_makefile
- create_win32ole_makefile
- dclone
- default_handler
- default_src_encoding
- define_singleton_method
- depend_rules
- dir_config
- display
- dummy_makefile
- dup
- enable_config
- enum_for
- eql?
- extend
- find_executable
- find_header
- find_library
- find_type
- freeze
- frozen?
- hash
- have_const
- have_func
- have_header
- have_library
- have_macro
- have_struct_member
- have_type
- have_var
- help
- httpd
- initialize_clone
- initialize_copy
- initialize_dup
- inspect
- install
- instance_of?
- instance_variable_defined?
- instance_variable_get
- instance_variable_set
- instance_variables
- is_a?
- kind_of?
- listup
- ln
- method
- mkdir
- mkmf
- mv
- navigate
- nil?
- object_id
- pretty_print
- pretty_print_cycle
- public_method
- public_send
- respond_to?
- respond_to_missing?
- rm
- rmdir
- send
- setup
- singleton_class
- singleton_methods
- stop_msg_loop
- sysread
- taint
- tainted?
- tap
- timeout
- to_enum
- to_json
- to_s
- touch
- trust
- try_const
- try_type
- untaint
- untrust
- untrusted?
- wait_writable
- with_config
- xmp
- Class methods
- json_create
- Private methods
-
remove_instance_variable