End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Psych::Emitter#line_width=
emitter.line_width = width
ext/psych/psych_emitter.c
View on GitHub ↗
static VALUE set_line_width(VALUE self, VALUE width)
{
yaml_emitter_t * emitter;
TypedData_Get_Struct(self, yaml_emitter_t, &psych_emitter_type, emitter);
yaml_emitter_set_width(emitter, NUM2INT(width));
return width;
}
Set the preferred line with to width.
See also
#line_width
#scalar
#indentation=
#start_document
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1