Class: Smartdown::Engine::NodePresenter
- Inherits:
-
Object
- Object
- Smartdown::Engine::NodePresenter
- Defined in:
- lib/smartdown/engine/node_presenter.rb
Constant Summary collapse
- PRESENTERS =
[ Smartdown::Engine::ConditionalResolver.new, Smartdown::Engine::Interpolator.new ]
Instance Method Summary collapse
Instance Method Details
#present(unpresented_node, state) ⇒ Object
12 13 14 15 16 |
# File 'lib/smartdown/engine/node_presenter.rb', line 12 def present(unpresented_node, state) PRESENTERS.inject(unpresented_node) do |node, presenter_class| presenter_class.call(node, state) end end |