Active Name Version Description
Android An Open Handset Alliance Project
Axis2 1.3
CakePHP 1.2 Rapid Development Php Framework
CSS
Grails 1.x Groovy version of Ruby on Rails
Groovy 1.6 Object-oriented language alternative for Java platform
Hibernate v3 High performance object/relational persistence and query service
HTML 4.x
Java 6 6
Java EE 5 5
Javascript Javascript functions, classes, event handlers
jQuery The Write Less, Do More, JavaScript Library
JSON Java JSON in Java from json.org
MySQL
Perl 5.10.0
PHP 5.x
Prototype A widely used JavaScript Framework
Python 2.5
Python C 2.5
Python Lib 2.5
Rails 2.3.5 A framework for developing web applications according to MVC
Ruby 1.8.7 A dynamic, interpreted, open source programming language
SiteMesh
Spring Framework 2.5 Full-stack Java/JEE application framework
Struts 2 2.0.11.2
Trails Core 1.2.1 Domain driven development framework in the spirit of Ruby on Rails
Trails Hibernate 1.2.1
Trails Security 1.2.1
Trails Test 1.2.1
Xerces2 J 2.9.1
Quick search is faster, or start browsing by clicking on API title
    File: pp.rb

    pp.rb

    Path: lib/pp.rb
    Last Update: Thu Jun 07 03:06:41 -0700 2007

    Pretty-printer for Ruby objects.

    Which seems better?

    non-pretty-printed output by p is:

      #<PP:0x81fedf0 @genspace=#<Proc:0x81feda0>, @group_queue=#<PrettyPrint::GroupQueue:0x81fed3c @queue=[[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], []]>, @buffer=[], @newline="\n", @group_stack=[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], @buffer_width=0, @indent=0, @maxwidth=79, @output_width=2, @output=#<IO:0x8114ee4>>
    

    pretty-printed output by pp is:

      #<PP:0x81fedf0
       @buffer=[],
       @buffer_width=0,
       @genspace=#<Proc:0x81feda0>,
       @group_queue=
        #<PrettyPrint::GroupQueue:0x81fed3c
         @queue=
          [[#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
           []]>,
       @group_stack=
        [#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
       @indent=0,
       @maxwidth=79,
       @newline="\n",
       @output=#<IO:0x8114ee4>,
       @output_width=2>
    

    I like the latter. If you do too, this library is for you.

    Usage

      pp(obj)
    

    output obj to +$>+ in pretty printed format.

    It returns nil.

    Output Customization

    To define your customized pretty printing function for your classes, redefine a method pretty_print(pp) in the class. It takes an argument pp which is an instance of the class PP. The method should use PP#text, PP#breakable, PP#nest, PP#group and PP#pp to print the object.

    Author

    Tanaka Akira <akr@m17n.org>

    Required files

    prettyprint   etc.so