Class: Smartdown::Parser::FlowInterpreter

Inherits:
Object
  • Object
show all
Defined in:
lib/smartdown/parser/flow_interpreter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flow_input) ⇒ FlowInterpreter

Returns a new instance of FlowInterpreter.



22
23
24
# File 'lib/smartdown/parser/flow_interpreter.rb', line 22

def initialize(flow_input)
  @flow_input = flow_input
end

Instance Attribute Details

#flow_inputObject (readonly)

Returns the value of attribute flow_input.



20
21
22
# File 'lib/smartdown/parser/flow_interpreter.rb', line 20

def flow_input
  @flow_input
end

Instance Method Details

#interpretObject



26
27
28
# File 'lib/smartdown/parser/flow_interpreter.rb', line 26

def interpret
  Smartdown::Model::Flow.new(coversheet.name, [coversheet] + questions + outcomes)
end