Method: Hanuman::GraphBuilder#define
- Defined in:
- lib/hanuman/graph.rb
#define(&blk) ⇒ Object
49 50 51 52 53 54 |
# File 'lib/hanuman/graph.rb', line 49 def define(&blk) graph = for_class || define_class(label) self.instance_eval(&blk) if block_given? extract_links! graph.register end |