Class: Liquid::InheritedBlockDrop

Inherits:
Drop
  • Object
show all
Defined in:
lib/liquid/tags/inherited_block.rb

Constant Summary

Constants inherited from Drop

Drop::EMPTY_STRING

Instance Attribute Summary

Attributes inherited from Drop

#context

Instance Method Summary collapse

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

#nameObject



90
91
92
# File 'lib/liquid/tags/inherited_block.rb', line 90

def name
  @block.name
end

#superObject



94
95
96
# File 'lib/liquid/tags/inherited_block.rb', line 94

def super
  @block.call_super(@context)
end