class Seahorse::Client::Xml::Builder::XmlDoc
def node(name, *args, &block)
-
(void)
-
Overloads:
-
node(name, attributes = {}, &block)
-
node(name, value, attributes = {})
-
node(name, attributes = {})
def node(name, *args, &block) attrs = args.last.is_a?(Hash) ? args.pop : {} if block_given? @target << open_el(name, attrs) @target << @end_of_line increase_pad { yield } @target << @pad @target << close_el(name) elsif args.empty? @target << empty_element(name, attrs) else @target << inline_element(name, args.first, attrs) end end