Fixed some YARD markup in XML::Generator
This commit is contained in:
parent
dd554f31e7
commit
a6cd19933d
|
@ -13,7 +13,7 @@ module Oga
|
||||||
#
|
#
|
||||||
# @private
|
# @private
|
||||||
class Generator
|
class Generator
|
||||||
# @param [Oga::XML::Document|Oga::XML::Node] start The node to serialise.
|
# @param [Oga::XML::Document|Oga::XML::Node] root The node to serialise.
|
||||||
def initialize(root)
|
def initialize(root)
|
||||||
@start = root
|
@start = root
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ module Oga
|
||||||
end
|
end
|
||||||
|
|
||||||
# @param [Oga::XML::Element] element
|
# @param [Oga::XML::Element] element
|
||||||
# @param [String] body The content of the element.
|
# @param [String] output The content of the element.
|
||||||
def on_element(element, output)
|
def on_element(element, output)
|
||||||
name = element.expanded_name
|
name = element.expanded_name
|
||||||
attrs = ''
|
attrs = ''
|
||||||
|
@ -156,7 +156,7 @@ module Oga
|
||||||
output << '>'
|
output << '>'
|
||||||
end
|
end
|
||||||
|
|
||||||
# @param [Oga::XML::Document] node
|
# @param [Oga::XML::Document] doc
|
||||||
# @param [String] output
|
# @param [String] output
|
||||||
def on_document(doc, output)
|
def on_document(doc, output)
|
||||||
if doc.xml_declaration
|
if doc.xml_declaration
|
||||||
|
|
Loading…
Reference in New Issue