XMLBuilder
XMLBuilder follows the Builder Pattern allowing XML markup to be constructed via Ruby method calls and block structures. XMLBuilder is a subclass of BuilderObject —see BuilderObject for more details.
Methods
Public Instance methods
[ show source ]
# File lib/facets/more/xmlbuilder.rb, line 35 def method_missing( op, *args, &block ) if block_given? @stack << @buffer @buffer = '' body = block.call @buffer = @stack.pop @buffer << builder.element( op, body, *args ) else @buffer << builder.element( op, *args ) end end