lib/Moby.rb in Moby-0.5.0 vs lib/Moby.rb in Moby-0.5.1
- old
+ new
@@ -172,10 +172,9 @@
def lambda2method (method_name, method_source)
evaluated = ast_eval method_source, binding
ast = evaluated.to_ast
transform_ast ast
- p "#{ast}"
args, block = block2source LiveAST.parser::Unparser.unparse(ast), method_name
args = "(#{args})" if args
"\ndef #{method_name} #{args}\n#{block} end\n"
end
\ No newline at end of file