Class | XTemplate::XMLDocument |
In: |
lib/xtemplate/xml.rb
lib/xtemplate/yaml.rb |
Parent: | Object |
# File lib/xtemplate/xml.rb, line 353 def initialize(text) @hash = nil case text when XNode @node = text when Hash,Array @node = XNode.new() value_to_xml(text, @node) else @node = parse(text) @node.prepare(nil, {:@type => true, :include => true, :template => true}) end end