class Volt::YieldBinding
Public Class Methods
new(volt_app, target, context, binding_name)
click to toggle source
Calls superclass method
Volt::BaseBinding::new
# File lib/volt/page/bindings/yield_binding.rb, line 8 def initialize(volt_app, target, context, binding_name) super(volt_app, target, context, binding_name) # Get the path to the template to yield full_path = @context.attrs.content_template_path # Grab the controller for the content controller = @context.attrs.content_controller @current_template = TemplateRenderer.new(volt_app, @target, controller, @binding_name, full_path) end
Public Instance Methods
remove()
click to toggle source
Calls superclass method
Volt::BaseBinding#remove
# File lib/volt/page/bindings/yield_binding.rb, line 20 def remove if @current_template # Remove the template if one has been rendered, when the template binding is # removed. @current_template.remove end super end