HTMLBuilder
HTMLBuilder follows the Builder Pattern allowing XML markup to be constructed via Ruby method calls and block structures. HTMLBuilder is a subclass of XMLBuilder —see XMLBuilder for more details.
Methods
Public Instance methods
[ show source ]
# File lib/facets/more/htmlbuilder.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