Parent

Methods

Proc

Public Instance Methods

to_ruby() click to toggle source
    # File lib/parse_tree_extensions.rb, line 56
56:   def to_ruby
57:     Ruby2Ruby.new.process(self.to_sexp).sub(/^\Aproc do/, 'proc {').sub(/end\Z/, '}')
58:   end
to_sexp() click to toggle source
    # File lib/parse_tree_extensions.rb, line 50
50:   def to_sexp
51:     pt = ParseTree.new(false)
52:     sexp = pt.parse_tree_for_proc(self)
53:     Unifier.new.process(sexp)
54:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.