1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
Jeremy Evans 39eadca76b Add FrozenError#receiver
Similar to NameError#receiver, this returns the object on which
the modification was attempted.  This is useful as it can pinpoint
exactly what is frozen.  In many cases when a FrozenError is
raised, you cannot determine from the context which object is
frozen that you attempted to modify.

Users of the current rb_error_frozen C function will have to switch
to using rb_error_frozen_object or the new rb_frozen_error_raise
in order to set the receiver of the FrozenError.

To allow the receiver to be set from Ruby, support an optional
second argument to FrozenError#initialize.

Implements [Feature #15751]
2019-05-26 11:09:21 -07:00
..
backward
backward.h
debug.h
defines.h
encoding.h
intern.h Add FrozenError#receiver 2019-05-26 11:09:21 -07:00
io.h
missing.h
onigmo.h Reduce ONIG_NREGION from 10 to 4: power of 2 and testing revealed most pattern matches are less than or equal to 4 results 2019-05-07 21:58:55 +09:00
oniguruma.h
re.h Remove member char_offset_updated from struct rmatch as member char_offset_num_allocated can serve the same purpose as that predicate 2019-04-24 02:02:05 +09:00
regex.h
ruby.h Suppress paranoid warnings for external/3rd-party libraries 2019-05-23 17:36:26 +09:00
st.h
subst.h
thread.h
thread_native.h
util.h
version.h
vm.h ViewVC of svn.ruby-lang.org was shutdown status. 2019-04-22 19:37:22 +09:00
win32.h