Method: VerilogTools::AST#each

Defined in:
lib/HDLRuby/verilog_parser.rb

#each(&ruby_block) ⇒ Object

Iterate over the children.



50
51
52
53
54
55
# File 'lib/HDLRuby/verilog_parser.rb', line 50

def each(&ruby_block)
  # No ruby block? Return an enumerator.
  return to_enum(:each) unless ruby_block
  # A ruby block? Apply it on each children.
  @children.each(&ruby_block)
end