Method: Hanuman::GraphInstanceMethods#add_link
- Defined in:
- lib/hanuman/graph.rb
#add_link(type, from, into) ⇒ Object
28 29 30 31 32 |
# File 'lib/hanuman/graph.rb', line 28 def add_link type, from, into add_stage(from) add_stage(into) self.links << Hanuman::LinkFactory.connect(type, from.linkable_name(:in), into.linkable_name(:out)) end |