Class: Solid::Block

Inherits:
Liquid::Block
  • Object
show all
Includes:
Element
Defined in:
lib/solid/block.rb

Direct Known Subclasses

LiquidExtensions::ForTag

Instance Method Summary collapse

Methods included from Element

#arguments, #current_context, #display, included, #initialize, #with_context

Instance Method Details

#render(context) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/solid/block.rb', line 5

def render(context)
  with_context(context) do
    display(*arguments.interpolate(context)) do
      super
    end
  end
end