Rubynet-announce Digest, Vol 5, Issue 3

Send rubynet-announce mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body ‘help’ to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than “Re: Contents of rubynet-announce digest…”

Today’s Topics:

  1. [ANN] html-table 0.0.3 (Daniel Berger)

Message: 1
Date: Tue, 08 Jul 2003 14:50:04 -0600
From: Daniel Berger
Subject: [ruby-announce] [ANN] html-table 0.0.3
To: rubynet-announce
Content-Type: text/plain; charset=us-ascii; format=flowed

Hi all,

I’m happy to announce the release of html-table 0.0.3 (beta). This is a
very different API from what you saw in 0.0.1.

A Table is now a subclass of Array, as are most of its components, which
means that you can access rows/elements etc by index number if you wish,
as well as use any of the Array/Enumerable methods for convenience.

In addition, you can now omit end tags (where permitted) as well as
capitalize your HTML tags, for those that prefer that style.

Here’s an example (simple2.rb from the docs/examples directory). Note
that there is usually more than one way to accomplish the same output.
See the docs and examples for more details.

require "html/table"
include HTML

Table.html_case = "upper"
Table::Row.end_tags = false
Table::Row::Data.end_tags = false

table =
tr1 =
tr2 =
tr3 =

tr1.content = “foo”, “bar”, "baz"
tr2.content = 1,2,3
tr3.content = %w/hello world/


table[0][1].align = “left”

puts table.html


foo bar baz
1 2 3
hello world



PS - 0.0.2 was largely similar, but it’s missing the capitalization
option, plus the tarball was somewhat messed up. That’s why it was
never announced.

rubynet-announce mailing list

End of rubynet-announce Digest, Vol 5, Issue 3