mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18ffba64bd
commit
d6d4573782
1 changed files with 5 additions and 5 deletions
10
lib/pp.rb
10
lib/pp.rb
|
@ -302,21 +302,21 @@ class PP < PrettyPrint
|
|||
|
||||
# Allows you to implement pretty print in your own class, for example:
|
||||
# require 'pp'
|
||||
#
|
||||
#
|
||||
# class Cat
|
||||
# include PP::ObjectMixin
|
||||
#
|
||||
#
|
||||
# attr_accessor :name, :age, :color
|
||||
#
|
||||
#
|
||||
# def initialize name
|
||||
# @name = name
|
||||
# end
|
||||
#
|
||||
#
|
||||
# def pretty_print q
|
||||
# q.pp_object self
|
||||
# end
|
||||
# alias inspect pretty_print_inspect
|
||||
#
|
||||
#
|
||||
# end
|
||||
#
|
||||
# In order to use this class, try the following:
|
||||
|
|
Loading…
Add table
Reference in a new issue