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/sexp_processor.rb, line 666 def deep_clone Marshal.load(Marshal.dump(self)) end
s(*args) click to toggle source
This is a very important shortcut to make using Sexps much more awesome.
# File lib/sexp.rb, line 343 def s(*args) Sexp.new(*args) end