Method: LemonGraph::NodeMap#each
- Defined in:
- ext/lemongraph/node_map.cc
#each_pair {|node, value| ... } ⇒ self #each_pair ⇒ Enumerator #each {|node, value| ... } ⇒ self #each ⇒ Enumerator
Calls the block, if given, once for each node key and value pair. The nodes and values are passed as parameters to the block.
Returns self, or, if no block is given, an Enumerator is returned.
917 918 919 920 921 |
# File 'ext/lemongraph/node_map.cc', line 917 VALUE lemongraph_nodemap_each_pair(VALUE self) { LemonGraph::NodeMap& nm = lemongraph_nodemap_rb2ref(self); return nm.each_pair(); } |