mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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] |
||
|---|---|---|
| .. | ||
| argf | ||
| array | ||
| basicobject | ||
| binding | ||
| builtin_constants | ||
| class | ||
| comparable | ||
| complex | ||
| dir | ||
| encoding | ||
| enumerable | ||
| enumerator | ||
| env | ||
| exception | ||
| false | ||
| fiber | ||
| file | ||
| filetest | ||
| float | ||
| gc | ||
| hash | ||
| integer | ||
| io | ||
| kernel | ||
| main | ||
| marshal | ||
| matchdata | ||
| math | ||
| method | ||
| module | ||
| mutex | ||
| nil | ||
| numeric | ||
| objectspace | ||
| proc | ||
| process | ||
| queue | ||
| random | ||
| range | ||
| rational | ||
| regexp | ||
| signal | ||
| sizedqueue | ||
| string | ||
| struct | ||
| symbol | ||
| systemexit | ||
| thread | ||
| threadgroup | ||
| time | ||
| tracepoint | ||
| true | ||
| unboundmethod | ||
| warning | ||