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:
|
# Allows you to implement pretty print in your own class, for example:
|
||||||
# require 'pp'
|
# require 'pp'
|
||||||
#
|
#
|
||||||
# class Cat
|
# class Cat
|
||||||
# include PP::ObjectMixin
|
# include PP::ObjectMixin
|
||||||
#
|
#
|
||||||
# attr_accessor :name, :age, :color
|
# attr_accessor :name, :age, :color
|
||||||
#
|
#
|
||||||
# def initialize name
|
# def initialize name
|
||||||
# @name = name
|
# @name = name
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# def pretty_print q
|
# def pretty_print q
|
||||||
# q.pp_object self
|
# q.pp_object self
|
||||||
# end
|
# end
|
||||||
# alias inspect pretty_print_inspect
|
# alias inspect pretty_print_inspect
|
||||||
#
|
#
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# In order to use this class, try the following:
|
# In order to use this class, try the following:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue