instance method
PrettyPrint::SingleLine#text
(::String obj, ?::Integer? width) -> void
text(obj, width=nil)
lib/prettyprint.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prettyprint.rb, line 514
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.