Class: Smartdown::Api::Outcome

Inherits:
Node
  • Object
show all
Defined in:
lib/smartdown/api/outcome.rb

Instance Attribute Summary

Attributes inherited from Node

#elements, #front_matter, #name, #title

Instance Method Summary collapse

Methods inherited from Node

#body, #devolved_body, #initialize, #next_nodes, #permitted_next_nodes

Constructor Details

This class inherits a constructor from Smartdown::Api::Node

Instance Method Details

#next_stepsObject



5
6
7
8
# File 'lib/smartdown/api/outcome.rb', line 5

def next_steps
  next_step_element = elements.find{|element| element.is_a? Smartdown::Model::Element::NextSteps}
  GovspeakPresenter.new(next_step_element.content).html if next_step_element
end