lib/smart_todo/parser/metadata_parser.rb
def process(sexp)
        return unless sexp

        if sexp[0].is_a?(Array)
          sexp.each { |node| process(node) }
        else
          method, *args = sexp
          send(method, *args) if method.is_a?(Symbol) && respond_to?(method)
        end
      end
# Iterate over each tokens returned from the parser and call
# the corresponding method
#
# @param sexp [Array]
# @return [void]
Iterate over each tokens returned from the parser and call
the corresponding method
Iterate over each tokens returned from the parser and call the corresponding method
def process(sexp)
        return unless sexp
        if sexp[0].is_a?(Array)
          sexp.each { |node| process(node) }
        else
          method, *args = sexp
          send(method, *args) if method.is_a?(Symbol) && respond_to?(method)
        end
      end
def process ( sexp ) return unless sexp if sexp [ 0 ] . is_a? ( Array ) sexp . each { | node | process ( node ) } else method , * args = sexp send ( method , * args ) if method . is_a? ( Symbol ) && respond_to? ( method ) end end
Iterate over each tokens returned from the parser and call
the corresponding method
Iterate over each tokens returned from the parser and call the corresponding method
None
void
sexp
None