class Htmlrb::Builder

Public Class Methods

new() { |tag| ... } click to toggle source
# File lib/htmlrb/builder.rb, line 7
def initialize
  @tag = Htmlrb::Tag.new
  yield @tag
end

Public Instance Methods

build() click to toggle source
# File lib/htmlrb/builder.rb, line 12
def build
  @tag.html_parts.join
end