Parent

Methods

Object

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/sexp_processor.rb, line 376
def deep_clone
  Marshal.load(Marshal.dump(self))
end
s(*args) click to toggle source

This is just a stupid shortcut to make indentation much cleaner.

# File lib/sexp.rb, line 308
def s(*args)
  Sexp.new(*args)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.