Skip to content
instance method

PrettyPrint::SingleLine#group

(?::Integer? indent, ?::String open_obj, ?::String close_obj, ?::Integer? open_width, ?::Integer? close_width) { () -> untyped } -> untyped
group(indent=nil, open_obj='', close_obj='', open_width=nil, close_width=nil) { || ... }

Opens a block for grouping objects to be pretty printed.

Arguments:

  • indent - noop argument. Present for compatibility.

  • open_obj - text appended before the &blok. Default is ”

  • close_obj - text appended after the &blok. Default is ”

  • open_width - noop argument. Present for compatibility.

  • close_width - noop argument. Present for compatibility.

See also #first? #text #breakable also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0