Module: Anchor::ViewHelper
- Included in:
- Component
- Defined in:
- app/helpers/anchor/view_helper.rb
Instance Method Summary collapse
Instance Method Details
#text_prose(content = nil, *args, **kwargs, &block) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'app/helpers/anchor/view_helper.rb', line 26 def text_prose(content = nil, *args, **kwargs, &block) if block.present? render(Anchor::ProseComponent.new(*args, **kwargs), &block) else render Anchor::ProseComponent.new(*args, **kwargs) .with_content(content) end end |