Parent

Methods

Class/Module Index [+]

Quicksearch

Object

Constants

CSV

Public Instance Methods

deep_clone() click to toggle source

deep_clone is the usual Marshalling hack to make a deep copy. It is rather slow, so use it sparingly. Helps with debugging SexpProcessors since you usually shift off sexps.

# File lib/ruby_parser/bm_sexp_processor.rb, line 199
def deep_clone
  Marshal.load(Marshal.dump(self))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.