instance method
_start_tag
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
_start_tag(sym, attrs, end_too=false)
Start an XML tag. If end_too is true, then the start tag is also the end tag (e.g. <br/>
Parameters
-
symreq -
attrsreq -
end_tooopt = false
Source
# File activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb, line 286
def _start_tag(sym, attrs, end_too=false)
@target << "<#{sym}"
_insert_attributes(attrs)
@target << "/" if end_too
@target << ">"
end
Defined in activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb line 286
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Builder::XmlMarkup