Class: UnboundMethod

### Home Classes Methods

### In Files

- lib/parse_tree_extensions.rb

### Parent

Object

### Methods

- #to_ruby

### 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.

# UnboundMethod

### Public Instance Methods

to_ruby() click to toggle source

    # File lib/parse_tree_extensions.rb, line 39
    def to_ruby
      name = ProcStoreTmp.new_name
      ProcStoreTmp.send(:define_method, name, self)
      m = ProcStoreTmp.new.method(name)
      result = m.to_ruby.sub(/def #{name}(?:\(([^\)]*)\))?/,
                             'proc { |\1|').sub(/end\Z/, '}')
      return result
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.