Support for the Ruby 2.4 series has ended. See here for reference.
prints arguments in pretty form.
pp returns argument(s).
# File pp.rb, line 20 def pp(*objs) objs.each {|obj| PP.pp(obj) } objs.size <= 1 ? objs.first : objs end
Returns a pretty printed object as a string.
In order to use this method you must first require the PP module:
PP
require 'pp'
See the PP module for more information.
# File pp.rb, line 13 def pretty_inspect PP.pp(self, ''.dup) end
This page was generated for Ruby 2.4.9
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.42.0.