Class: Object

### Home Classes Methods

### In Files

- lib/sexp.rb
- lib/sexp_processor.rb

### Parent

BasicObject

### Methods

- #deep_clone
- #s

### Files

- History.txt
- Manifest.txt
- README.txt

### Class/Module Index

Quicksearch

- SexpProcessor
- SexpProcessor::Environment
- CompositeSexpProcessor
- Examples
- MethodBasedSexpProcessor
- NotEmptyError
- Object
- ParseTreeTestCase
- Sexp
- SexpAny
- SexpInterpreter
- SexpMatchSpecial
- SexpMatchSpecials
- SexpProcessorError
- SexpTypeError
- Unique
- UnknownNodeError
- UnsupportedNodeError

No matching classes.

# 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 664
    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 332
    def s(*args)
      Sexp.new(*args)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.