class Keyremac::Raw
container
¶ ↑
Public Class Methods
new(tag, children = [])
click to toggle source
# File lib/keyremac/base.rb, line 73 def initialize(tag, children = []) @tag = tag @children = children end
Public Instance Methods
dump(xml)
click to toggle source
# File lib/keyremac/dump.rb, line 64 def dump(xml) if @children.class == String xml.tag! @tag, @children else xml.tag! @tag do @children.each { |child| child.dump xml } end end end