# File spec/gherkin/sexp_recorder.rb, line 41
    def sexpify(o)
      array = (defined?(JRUBY_VERSION) && Java.java.util.Collection === o) || 
              (defined?(V8) && V8::Array === o) ||
              Array === o
      if array
        o.map{|e| sexpify(e)}
      elsif(Formatter::Model::Row === o)
        {
          "cells" => sexpify(o.cells),
          "comments" => sexpify(o.comments),
          "line" => o.line,
        }
      elsif(Formatter::Model::Comment === o)
        o.value
      elsif(Formatter::Model::Tag === o)
        o.name
      else
        o
      end
    end