class Smartdown::Model::Flow
Attributes
name[R]
nodes[R]
Public Class Methods
new(name, nodes = [])
click to toggle source
# File lib/smartdown/model/flow.rb, line 6 def initialize(name, nodes = []) @name = name @nodes = nodes end
Public Instance Methods
==(other)
click to toggle source
# File lib/smartdown/model/flow.rb, line 19 def ==(other) other.is_a?(self.class) && other.nodes == self.nodes && other.name == self.name end
coversheet()
click to toggle source
# File lib/smartdown/model/flow.rb, line 11 def coversheet node(name) end
node(node_name)
click to toggle source
# File lib/smartdown/model/flow.rb, line 15 def node(node_name) @nodes.find {|n| n.name.to_s == node_name.to_s } || raise("Unable to find #{node_name}") end