Class: Locomotive::Steam::Liquid::Drops::InheritedBlock
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Locomotive::Steam::Liquid::Drops::InheritedBlock
- Defined in:
- lib/locomotive/steam/liquid/drops/inherited_block.rb
Overview
Used to render the content of the parent block.
{% extends home %}
{% block content }{{ block.super }}{% endblock %}
Instance Method Summary collapse
-
#initialize(block) ⇒ InheritedBlock
constructor
A new instance of InheritedBlock.
- #name ⇒ Object
- #super ⇒ Object
Constructor Details
#initialize(block) ⇒ InheritedBlock
Returns a new instance of InheritedBlock.
12 13 14 |
# File 'lib/locomotive/steam/liquid/drops/inherited_block.rb', line 12 def initialize(block) @block = block end |
Instance Method Details
#name ⇒ Object
16 17 18 |
# File 'lib/locomotive/steam/liquid/drops/inherited_block.rb', line 16 def name @block.name end |
#super ⇒ Object
20 21 22 |
# File 'lib/locomotive/steam/liquid/drops/inherited_block.rb', line 20 def super @block.call_super(@context) end |