Module: FoxPage::Helpers::TagHelper
- Defined in:
- lib/fox_page/helpers/tag_helper.rb
Defined Under Namespace
Classes: TagBuilder
Instance Method Summary collapse
Instance Method Details
#content_tag(name, content_or_options_with_block = nil, options = nil, &block) ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/fox_page/helpers/tag_helper.rb', line 34 def content_tag(name, = nil, = nil, &block) content = if block_given? = content = block.call end ||= {} TagBuilder.new(name:, content:, options:).build end |