Class: Einstein::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/einstein/processor.rb

Direct Known Subclasses

Evaluator, PrettyPrinter

Instance Method Summary collapse

Instance Method Details

#process(node) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/einstein/processor.rb', line 3

def process(node)
  node ||= []
  if respond_to?(method = "process_#{node.first}")
    send(method, node)
  else
    raise "No process method for sexp: #{node.inspect}"
  end
end