Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/parse_tree_extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_ruby ⇒ Object
56 57 58 |
# 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 |