Class: Liquid::InheritedBlockDrop
- Defined in:
- lib/liquid/tags/inherited_block.rb
Constant Summary
Constants inherited from Drop
Instance Attribute Summary
Attributes inherited from Drop
Instance Method Summary collapse
-
#initialize(block) ⇒ InheritedBlockDrop
constructor
A new instance of InheritedBlockDrop.
- #name ⇒ Object
- #super ⇒ Object
Methods inherited from Drop
#before_method, #has_key?, #invoke_drop, #to_liquid
Constructor Details
#initialize(block) ⇒ InheritedBlockDrop
Returns a new instance of InheritedBlockDrop.
86 87 88 |
# File 'lib/liquid/tags/inherited_block.rb', line 86 def initialize(block) @block = block end |
Instance Method Details
#name ⇒ Object
90 91 92 |
# File 'lib/liquid/tags/inherited_block.rb', line 90 def name @block.name end |
#super ⇒ Object
94 95 96 |
# File 'lib/liquid/tags/inherited_block.rb', line 94 def super @block.call_super(@context) end |