RubyGems Navigation menu

jig 0.1.0

A jig is a data structure designed to facilitate construction and manipulation of strings with an inherent hierarchical syntax. The idea is derived from the <bigwig> project (http://www.brics.dk/bigwig/) and in particular the XML templating constructs described in the paper: A Type System for Dynamic Web Documents (http://www.brics.dk/bigwig/publications/dyndoc.pdf). The name is derived from woodworking where a jig is a template designed to guide other tools. A jig is an ordered sequence of objects (usually strings) and named _gaps_. When rendered as a string by Jig#to_s, the objects are rendered by calling #to_s on each object in order. The gaps are skipped. A new jig may be constructed from an existing jig by 'plugging' one or more of the named gaps. The new jig shares the objects and their ordering from the original jig but with the named gap replaced with the 'plug'. Gaps may be plugged by any object or sequence of objects. When a gap is plugged with another jig, the contents (including gaps) are incorporated into the new jig. In addition to strings and gaps, a Jig may contain a proc object (or lambda or method). Procs within a jig are not evaluated until the jig is rendered as a string by #to_s.

Gemfile:
=

install:
=

Versions:

  1. 0.1.2 February 28, 2008* (32 KB)
  2. 0.1.0 May 17, 2007* (30 KB)

Runtime Dependencies (1):

hoe >= 1.2.0

Owners:

Authors:

  • Gary Wright

SHA 256 checksum:

=

Total downloads 8,949

For this version 3,838

Version Released:

Licenses:

N/A

Required Ruby Version: > 0.0.0

Links: