msergeant / star.net.uk (Matt Sergeant) writes:

> [1] Could be as simple as:
> 
> class Element
>   attr_reader :uri, :qname, :localname, :attrs
>   attr_writer :uri, :qname, :localname, :attrs
>   def initialize(uri, qname, localname, attrs)
>     @uri = uri
>     @qname = qname
>     @localname = localname
>     @attrs = attrs
>   end
> end

There's a neat short-hand for this kind of lightweight classes:

Element = Struct.new('Element', :uri, :qname, :localname, :attrs)

-- 
Pierre-Charles David (pcdavid <at> emn <dot> fr)
Computer Science PhD Student, ?cole des Mines de Nantes, France
Homepage: http://purl.org/net/home/pcdavid