Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
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.1.0-preview1/lib/prettyprint.rb, line 516
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.