class Locomotive::Steam::Liquid::Drops::InheritedBlock
Used to render the content of the parent block.
{% extends home %} {% block content }{{ block.super }}{% endblock %}
Public Class Methods
new(block)
click to toggle source
# File lib/locomotive/steam/liquid/drops/inherited_block.rb, line 12 def initialize(block) @block = block end
Public Instance Methods
name()
click to toggle source
# File lib/locomotive/steam/liquid/drops/inherited_block.rb, line 16 def name @block.name end
super()
click to toggle source
# File lib/locomotive/steam/liquid/drops/inherited_block.rb, line 20 def super @block.call_super(@context) end