Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
PrettyPrint::SingleLine#breakable
(?::String sep, ?::Integer? width) -> void
breakable(sep=' ', width=nil)
lib/prettyprint.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/prettyprint.rb, line 523
def breakable(sep=' ', width=nil)
@output << sep
end
Appends sep to the text to be output. By default sep is ‘ ’
width argument is here for compatibility. It is a noop argument.