Class: ContentForProxy
- Inherits:
-
Arbre::HTML::Tag
- Object
- Arbre::HTML::Tag
- ContentForProxy
- Defined in:
- lib/express_templates/components/content_for.rb
Overview
Proxy component for content_for to prevent it from inserting the block’s value into its location.
Instance Method Summary collapse
Instance Method Details
#build(key, content = nil, &block) ⇒ Object
6 7 8 |
# File 'lib/express_templates/components/content_for.rb', line 6 def build(key, content = nil, &block) @value = helpers.content_for(key, content, &block) end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/express_templates/components/content_for.rb', line 10 def to_s @value end |