Module: EADCodec

Includes:
XMLUtils
Defined in:
lib/eadcodec.rb

Overview

This module includes all the support for EAD import/export. The main class to use is EADDocument that is a subclass of XMLUtils::XMLElement. All elements supported are based on the EAD DTD and have the same names. Currently not all attributes and elements have been added. Adding an element is pretty easy though.

Defined Under Namespace

Modules: WithParagraphs, WithText Classes: EADElement, EADSimpleElement

Class Method Summary collapse

Class Method Details

.sclass(name, string) ⇒ Object



24
25
26
# File 'lib/eadcodec.rb', line 24

def self.sclass(name, string)
  const_set(name, Class.new(EADSimpleElement)).send(:elname, string) 
end