Permalink
Browse files

! Removed block from when node

[git-p4: depot-paths = "//src/ruby2ruby/dev/": change = 7375]
  • Loading branch information...
1 parent 163eb40 commit bc57cec8d538e05e839c7c4d2c08ec237e762797 @zenspider zenspider committed Apr 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ruby2ruby.rb
View
2 lib/ruby2ruby.rb
@@ -828,7 +828,7 @@ def process_when(exp)
until exp.empty?
cond = process(exp.shift).to_s[1..-2]
- code = indent(process(exp.shift))
+ code = indent(finish(exp).join("\n"))
code = indent "# do nothing" if code =~ /\A\s*\Z/
src << "when #{cond} then\n#{code.chomp}"
end

0 comments on commit bc57cec

Please sign in to comment.