Method: MetricFu::SexpNode#each_of_type
- Defined in:
- lib/metric_fu/data_structures/sexp_node.rb
#each_of_type(type, node_class = SexpNode) ⇒ Object
21 22 23 24 25 |
# File 'lib/metric_fu/data_structures/sexp_node.rb', line 21 def each_of_type(type, node_class = SexpNode) sexp.each_of_type(type) do |child_sexp| yield node_class.new(child_sexp) end end |