class ContentForProxy

Proxy component for content_for to prevent it from inserting the block's value into its location.

Public Instance Methods

build(key, content = nil, &block) click to toggle source
# 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() click to toggle source
# File lib/express_templates/components/content_for.rb, line 10
def to_s
  @value
end