class Phlex::SGML
def __final_call__(buffer = nil, target: +"", view_context: nil, parent: nil, &block)
- Api: - private
def __final_call__(buffer = nil, target: +"", view_context: nil, parent: nil, &block) @_target = target @_view_context = view_context @_parent = parent block ||= @_content_block return buffer || target unless render? around_template do if block if DeferredRender === self __vanish__(self, &block) template else template do |*args| if args.length > 0 yield_content_with_args(*args, &block) else yield_content(&block) end end end else template end end buffer ? (buffer << target) : target end