plugins/adva_safemode/vendor/gems/sexp_processor-3.0.3/lib/sexp.rb
def structure
    result = self.class.new
    if Array === self.first then
      result = self.first.structure
    else
      result << self.first
      self.grep(Array).each do |subexp|
        result << subexp.structure
      end
    end
    result
  end
##
# Returns the bare bones structure of the sexp.
# s(:a, :b, s(:c, :d), :e) => s(:a, s(:c))
Returns the bare bones structure of the sexp.
Returns the bare bones structure of the sexp .
def structure
    result = self.class.new
    if Array === self.first then
      result = self.first.structure
    else
      result << self.first
      self.grep(Array).each do |subexp|
        result << subexp.structure
      end
    end
    result
  end
def structure result = self . class . new if Array === self . first then result = self . first . structure else result << self . first self . grep ( Array ) . each do | subexp | result << subexp . structure end end result end
Returns the bare bones structure of the sexp.
Returns the bare bones structure of the sexp .