Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
PrettyPrint::SingleLine#text
text(obj, width=nil)
lib/prettyprint.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prettyprint.rb, line 513
def text(obj, width=nil)
@output << obj
end
Add obj to the text to be output.
width argument is here for compatibility. It is a noop argument.