class Phlex::HTML
def call(buffer = +"", view_context: nil, parent: nil, &block)
def call(buffer = +"", view_context: nil, parent: nil, &block) return buffer unless render? raise "The same view instance shouldn't be rendered twice" if rendered? @_rendered = true @_target = buffer @_view_context = view_context @_parent = parent @output_buffer = self template(&block) self.class.rendered_at_least_once ||= true buffer end