stdlib/pp/0/pp.rbs in rbs-3.3.2 vs stdlib/pp/0/pp.rbs in rbs-3.4.0.pre.1
- old
+ new
@@ -36,11 +36,12 @@
# It returns `obj(s)`.
#
# ## Output Customization
#
# To define a customized pretty printing function for your classes, redefine
-# method `#pretty_print(pp)` in the class.
+# method `#pretty_print(pp)` in the class. Note that `require 'pp'` is needed
+# before redefining `#pretty_print(pp)`.
#
# `#pretty_print` takes the `pp` argument, which is an instance of the PP class.
# The method uses #text, #breakable, #nest, #group and #pp to print the object.
#
# ## Pretty-Print JSON
@@ -288,13 +289,9 @@
# <!--
# rdoc-file=lib/pp.rb
# - pretty_inspect()
# -->
# Returns a pretty printed object as a string.
- #
- # In order to use this method you must first require the PP module:
- #
- # require 'pp'
#
# See the PP module for more information.
#
def pretty_inspect: () -> String
end