Class: VTD::Xml::Generator
- Inherits:
-
Object
- Object
- VTD::Xml::Generator
- Defined in:
- lib/vtd/xml/generator.rb
Constant Summary collapse
- GENERATORS =
[:products, :books]
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(root) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
Instance Method Details
#generate ⇒ Object
11 12 13 14 15 |
# File 'lib/vtd/xml/generator.rb', line 11 def generate GENERATORS.each do |generator_name| open(generator_name, &method(generator_name)) end end |