1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

26 commits

Author SHA1 Message Date
akr
0b5d8d2d66 * lib/pp.rb: refine to_s test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-11 04:53:57 +00:00
akr
93aa87568b * lib/pp.rb (PP::ObjectMixin#pretty_print): refine to_s handling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-10 20:53:58 +00:00
akr
b6c5aa09a8 add test for previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-16 03:57:52 +00:00
akr
0eeff37f94 * lib/pp.rb (object_address_group): use to_s instead of name
to get name of class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-16 03:32:40 +00:00
akr
03e45b46ea * lib/pp.rb (Kernel.pp): module function.
(MatchData#pretty_print): new method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-07 13:02:29 +00:00
akr
fce7467e60 * lib/pp.rb: Use Test::Unit.
* 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
2003-01-21 05:51:41 +00:00
akr
c2dbfe53fc fix sharing_detection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 19:54:56 +00:00
akr
d0ea0b4a8d refine previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 19:17:15 +00:00
akr
f345126746 * lib/pp.rb: Don't redefine `inspect'.
(pretty_print_inspect): new method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-01-20 17:58:24 +00:00
akr
96f82b243f * lib/pp.rb (PP.singleline_pp): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-02 16:16:05 +00:00
akr
e2d1e7cfe4 * lib/prettyprint.rb (PrettyPrint.singleline_format): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-08 01:58:34 +00:00
akr
c47f24027a * pp.rb (ARGF.pretty_print): implemented.
(PP.pp): arguments reordered.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-09-11 12:29:17 +00:00
akr
9c4a482229 * lib/time.rb (Time.rfc2822, Time#rfc2822): preserve localtimeness.
* 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
2002-08-24 05:18:08 +00:00
akr
4e85b28085 expand TABs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-07-03 02:49:42 +00:00
akr
ba8174d11e made object address test to compare inspect's result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-30 07:30:26 +00:00
akr
788181a4eb fix object address test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-29 16:21:18 +00:00
matz
f0221db462 * re.c (rb_reg_expr_str): need to process backslashes properly.
* 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
2002-06-28 14:42:46 +00:00
akr
ee852ed46d lib/pp.rb: fix object address.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-28 08:55:10 +00:00
akr
571ff1d6b9 * lib/prettyprint.rb, lib/pp.rb: convenience methods added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-27 12:01:07 +00:00
akr
e50f2d285f * lib/prettyprint.rb: re-implemented for incremental output to handle
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
2002-06-27 06:27:20 +00:00
akr
4795daf1bc * lib/pp.rb (pp): return nil like p.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-03-25 18:24:46 +00:00
akr
9ce7325615 * prettyprint.rb: FillGroup implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-22 02:31:46 +00:00
akr
097c41755d refine previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-01-31 04:57:54 +00:00
akr
caa76f71fb * lib/pp.rb (File::Stat#pretty_print): print rdev_major and rdev_minor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-01-31 04:24:04 +00:00
akr
46d98fe87b * lib/pp.rb: don't print a mode File::Stat as decimal number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-01-29 10:01:41 +00:00
akr
a2ba32fab9 lib/pp.rb lib/prettyprint.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-12-24 17:38:33 +00:00