Create a new element explicitly
93 94 95 96 97 98 99 100 101 102
# File 'lib/iron/web/html.rb', line 93 def tag(tag, *args, &block) item = Html::Element.new(tag, *args) self << item if block @item_stack.push item block.call(item) @item_stack.pop end return self end