Class: CPEE::Transformation::Target::CPEE
- Defined in:
- lib/cpee/transformation/cpee.rb
Overview
{{{
Instance Method Summary collapse
Methods inherited from Default
#generate_after_list, #generate_in_list, #initialize
Constructor Details
This class inherits a constructor from CPEE::Transformation::Target::Default
Instance Method Details
#generate ⇒ Object
184 185 186 187 188 189 190 191 192 |
# File 'lib/cpee/transformation/cpee.rb', line 184 def generate @nids = [] @eid = 0 res = XML::Smart.string("<description xmlns='http://cpee.org/ns/description/1.0' xmlns:a='http://cpee.org/ns/annotation/1.0'/>") res.register_namespace 'd', 'http://cpee.org/ns/description/1.0' res.register_namespace 'a', 'http://cpee.org/ns/annotation/1.0' generate_in_list(@tree,res.root) res.to_s end |