Class: Smartdown::Engine::Interpolator::ElementContentInterpolator

Inherits:
NullElementInterpolator show all
Defined in:
lib/smartdown/engine/interpolator.rb

Instance Attribute Summary

Attributes inherited from NullElementInterpolator

#element

Instance Method Summary collapse

Methods inherited from NullElementInterpolator

#initialize

Constructor Details

This class inherits a constructor from Smartdown::Engine::Interpolator::NullElementInterpolator

Instance Method Details

#call(state) ⇒ Object



34
35
36
37
38
# File 'lib/smartdown/engine/interpolator.rb', line 34

def call(state)
  element.dup.tap do |e|
    e.content = interpolate(e.content, state)
  end
end