Permalink
Browse files

fix [:case] dispatcher

  • Loading branch information...
1 parent c542534 commit 4d2de7b441c123bbdb2d62dfb0b0cfbc843a29e6 @minad minad committed Sep 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/temple/mixins/dispatcher.rb
@@ -27,7 +27,7 @@ def on_if(condition, *cases)
end
def on_case(arg, *cases)
- [:case, arg, *cases.map {|condition, exp| [condition, compile(exp)] }]
+ [:case, arg, *cases.map {|condition, *exps| [condition, *exps.map {|e| compile(e) }] }]
end
def on_block(code, content)

0 comments on commit 4d2de7b

Please sign in to comment.