Lines Matching defs:value

133 // Get a new Ruby wrapper type and set the initial value
134 VALUE ruby_wrapper_type(VALUE type_class, VALUE value) {
135 if (value != Qnil) {
137 rb_hash_aset(hash, rb_str_new2("value"), value);
279 * It also provides methods of the form 'clear_fieldname' to clear the value
281 * value of the field.
340 VALUE value = layout_get(self->descriptor->layout, Message_data(self), f);
341 switch (TYPE(value)) {
343 return rb_funcall(value, rb_intern("value"), 0);
347 return value;
372 // Convert the value for singular fields
437 "Expected Hash object as initializer value for map field '%s' (given %s).",
448 "Expected array as initializer value for repeated field '%s' (given %s).",
574 * Returns a hash value that represents this message's field values.
589 * field's value is represented according to its own #inspect method.
669 * Message.[](index) => value
671 * Accesses a field's value by field name. The provided field name should be a
688 * Message.[]=(index, value)
690 * Sets a field's value by field name. The provided field name should be a
693 VALUE Message_index_set(VALUE _self, VALUE field_name, VALUE value) {
702 layout_set(self->descriptor->layout, Message_data(self), field, value);
728 // Docs say this parameter is ignored. User will assign return value to
769 * value by number and returns its name as a Ruby symbol, or nil if not found.
789 * value by name (as a Ruby symbol) and returns its name, or nil if not found.
826 int32_t value = upb_enum_iter_number(&it);
828 rb_warn("Enum value '%s' does not start with an uppercase letter "
832 rb_define_const(mod, name, INT2NUM(value));