Class: Proc

### Home Classes Methods

### In Files

- lib/parse_tree_extensions.rb

### Parent

Object

### Methods

- #to_ruby
- #to_sexp

### Files

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

### Class/Module Index

Quicksearch

- Class
- ClassInclude
- Method
- Mod1
- Mod2
- Module
- ParseTree
- ParseTreeGauntlet
- ParseTreeTestCase
- PostUnifier
- PreUnifier
- Proc
- ProcStoreTmp
- R2RTestCase
- RawParseTree
- Something
- SomethingWithInitialize
- TestParseTree
- TestRawParseTree
- TestUnifier
- UnboundMethod
- UnifiedRuby
- Unifier

No matching classes.

# Proc

### Public Instance Methods

to_ruby() click to toggle source

    # File lib/parse_tree_extensions.rb, line 56
    def to_ruby
      Ruby2Ruby.new.process(self.to_sexp).sub(/^\Aproc do/, 'proc {').sub(/end\Z/, '}')
    end

to_sexp() click to toggle source

    # File lib/parse_tree_extensions.rb, line 50
    def to_sexp
      pt = ParseTree.new(false)
      sexp = pt.parse_tree_for_proc(self)
      Unifier.new.process(sexp)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.