Parent

Methods

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.