Class: Amanzi::XML::Comment

Inherits:
Element
  • Object
show all
Defined in:
lib/amanzi/xml.rb

Instance Attribute Summary

Attributes inherited from Element

#attributes, #children, #depth, #name, #namespace

Instance Method Summary collapse

Methods inherited from Element

#<<, #[]=, #add_child, #attribute_text, camelize, #comment, #contents, #indent, #initialize, #insert, #insert_child, #make_child, #method_missing, #ns, #tag, #to_s

Constructor Details

This class inherits a constructor from Amanzi::XML::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Amanzi::XML::Element

Instance Method Details

#to_xml(options = {}) ⇒ Object



75
76
77
# File 'lib/amanzi/xml.rb', line 75

def to_xml(options={})
  "<!-- #{[name,children].flatten.map{|c| c.to_s}.join(', ')} -->"
end