diff --git a/lib/ruby/return_statement.rb b/lib/ruby/return_statement.rb index f76343cc..e2e13e85 100644 --- a/lib/ruby/return_statement.rb +++ b/lib/ruby/return_statement.rb @@ -10,10 +10,9 @@ module Ruby def to_vool val , rest = *normalize_name(@return_value) - me = Vool::ReturnStatement.new(val) + me = Vool::ReturnStatement.new(val.to_vool) return me unless rest - rest << me - rest + Vool::Statements.new([ rest.to_vool , me]) end def to_s(depth = 0) diff --git a/lib/ruby/statements.rb b/lib/ruby/statements.rb index d425c79b..df716b90 100644 --- a/lib/ruby/statements.rb +++ b/lib/ruby/statements.rb @@ -26,8 +26,7 @@ module Ruby def <<(o) @statements << o self - end - + end def to_vool if( single? ) first.to_vool