Module: Flow::Heart

Defined in:
lib/flowheart.rb

Instance Method Summary collapse

Instance Method Details

#newstep(chart, step) ⇒ Object



12
13
14
15
# File 'lib/flowheart.rb', line 12

def newstep(chart, step)
	$fullstep = step.to_s	
	$steps.push($fullstep)
end

#run(stepname, resp) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/flowheart.rb', line 17

def run(stepname, resp)
	fs = stepname.to_s
	if resp == 'yes'
		[].delete(fs)
	else
		truesies = false
	end	
end