Sha256: c919aee6f1bb441d61c7e82741eb2f5019675575ef7aed054b311e54e1310215
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
module Crefo module XML class Utils module HashToNodes def call(xml_builder, wrapper_node, nodes) xml_builder.__send__ wrapper_node do |parent_node| nodes.each_pair do |key, value| case value when Hash HashToNodes.call(xml_builder, key, value) else parent_node.send key, value end end end end module_function :call end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crefo-0.3.0 | lib/crefo/xml/utils/hash_to_nodes.rb |