End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Psych::Emitter#indentation=
emitter.indentation = level
ext/psych/psych_emitter.c
View on GitHub ↗
static VALUE set_indentation(VALUE self, VALUE level)
{
yaml_emitter_t * emitter;
TypedData_Get_Struct(self, yaml_emitter_t, &psych_emitter_type, emitter);
yaml_emitter_set_indent(emitter, NUM2INT(level));
return level;
}
Set the indentation level to level. The level must be less than 10 and greater than 1.
See also
#indentation
#line_width
#end_stream
#line_width=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0