Method: CodeNode::GraphBuilder#define

Defined in:
lib/code_node/graph_builder.rb

#define(&block) ⇒ self

Define the custom graph generation rules

Returns:



30
31
32
33
# File 'lib/code_node/graph_builder.rb', line 30

def define(&block)
  block.call DSL::GraphDefiner.new(@graph)
  self
end