class BBLib::HTML::TagSet

Similar to the default tag but isn't representative of a an HTML element. Instead, this is a collection of nested HTML Elements, so only children of TagSets are rendered to html.

Public Instance Methods

render(pretty: false, tabs: 0) click to toggle source
# File lib/bblib/html/tag_set.rb, line 9
def render(pretty: false, tabs: 0)
  render_content(pretty: pretty, tabs: tabs)
end
render_content(pretty: false, tabs: 0) click to toggle source
# File lib/bblib/html/tag_set.rb, line 13
def render_content(pretty: false, tabs: 0)
  return '' if children.empty?
  children.map { |tag| tag.render(pretty: pretty, tabs: tabs + 1) }.join
end