Class: Cybertrain::Html::TagBuilder

Inherits:
Object
  • Object
show all
Defined in:
cybertrain/html.rb

Overview

What tag evaluates to in a template: tag.div(...) is a method call on it, which Template::Helpers#call_object_method turns into Html.build_tag(“div”, …). It has no state; TAG_BUILDER is the one instance. <%= tag %> alone prints nothing.