Class: Garterbelt::Xml

Inherits:
ClosedTag show all
Defined in:
lib/renderers/xml.rb

Instance Attribute Summary

Attributes inherited from ClosedTag

#attributes, #css_class, #type

Attributes inherited from Renderer

#escape, #style, #view

Instance Method Summary collapse

Methods inherited from ClosedTag

#c, #id, #initialize, #render, #rendered_attributes

Methods inherited from Renderer

#indent, #initialize, #level, #line_end, #output, #output=, #render

Constructor Details

This class inherits a constructor from Garterbelt::ClosedTag

Instance Method Details

#templateObject



3
4
5
# File 'lib/renderers/xml.rb', line 3

def template
  "#{indent}<?xml #{rendered_attributes} ?>\n"
end