aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pp.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/pp.rb (PPInspectTest#test_to_s_with_iv): rollback the previousnahi2004-02-061-1/+0
| | | | | | | commit. [ruby-dev:22813] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instancenahi2004-02-061-0/+1
| | | | | | | variable which is defined in the test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prettyprint.rb (PrettyPrint#seplist): added.akr2004-02-051-11/+6
| | | | | | | | | | | | | * lib/pp.rb (PPMethods#pp_object): use seplist. (PPMethods#pp_hash): ditto. (Array#pretty_print): ditto. (Struct#pretty_print): ditto. (MatchData#pretty_print): ditto. * lib/set.rb (Set#pretty_print): use seplist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (Struct#pretty_print_cycle): follow 1.8 style.akr2004-02-021-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (Struct#pretty_print): make it 1.8 style.akr2004-02-011-2/+14
| | | | | | | | | (Numeric#pretty_print, FalseClass#pretty_print) (TrueClass#pretty_print, Module#pretty_print): fix pp for objects with instance variables. [ruby-talk:91157] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2004-01-071-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: don't use local variable `pp'.akr2003-12-161-97/+97
| | | | | | | * lib/prettyprint.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: refine to_s test.akr2003-05-111-11/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PP::ObjectMixin#pretty_print): refine to_s handling.akr2003-05-101-5/+24
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for previous change.akr2003-03-161-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (object_address_group): use to_s instead of nameakr2003-03-161-1/+1
| | | | | | | to get name of class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (Kernel.pp): module function.akr2003-03-071-0/+13
| | | | | | | (MatchData#pretty_print): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: Use Test::Unit.akr2003-01-211-9/+34
| | | | | | | | | | | * lib/prettyprint.rb: Ditto * lib/time.rb: Ditto * lib/tsort.rb: Ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix sharing_detection.akr2003-01-201-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine previous change.akr2003-01-201-21/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: Don't redefine `inspect'.akr2003-01-201-65/+34
| | | | | | | (pretty_print_inspect): new method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (PP.singleline_pp): new method.akr2002-12-021-68/+80
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prettyprint.rb (PrettyPrint.singleline_format): new method.akr2002-10-081-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pp.rb (ARGF.pretty_print): implemented.akr2002-09-111-14/+24
| | | | | | | (PP.pp): arguments reordered. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.rfc2822, Time#rfc2822): preserve localtimeness.akr2002-08-241-9/+9
| | | | | | | * lib/pp.rb: pretty_print_cycled is renamed to pretty_print_cycle. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* expand TABs.akr2002-07-031-130/+130
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* made object address test to compare inspect's result.akr2002-06-301-2/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix object address test.akr2002-06-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_expr_str): need to process backslashes properly.matz2002-06-281-1/+1
| | | | | | | | | | | | | | | | | | * object.c (rb_any_to_a): declare Object#to_a to be obsolete. * object.c (rb_Array): do not convert nil into [] automagically. * object.c (rb_Integer): use "to_int" instead of "to_i". [experimental] * object.c (nil_to_f): new method. * object.c (rb_Integer): Symbols and nil should cause error. * object.c (rb_Float): nil should cause error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/pp.rb: fix object address.akr2002-06-281-7/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prettyprint.rb, lib/pp.rb: convenience methods added.akr2002-06-271-92/+74
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prettyprint.rb: re-implemented for incremental output to handleakr2002-06-271-5/+5
| | | | | | | | | huge data. API is changed a bit. * lib/pp.rb: adapt new pretty printing API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (pp): return nil like p.akr2002-03-251-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * prettyprint.rb: FillGroup implemented.akr2002-02-221-26/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine previous change.akr2002-01-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb (File::Stat#pretty_print): print rdev_major and rdev_minor.akr2002-01-311-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: don't print a mode File::Stat as decimal number.akr2002-01-291-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/pp.rb lib/prettyprint.rb: new file.akr2001-12-241-0/+549
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e