D
Daniel Schierbeck
I have no problem doing this:
if foo :bar then
...
end
Yet when I do this:
case "foo"
when bar :baz then "bur"
end
I get the following syntax error:
SyntaxError: compile error
(irb):30: parse error, unexpected tSYMBEG, expecting kDO or '{' or '('
when bar :baz then "bur"
^
Is this intentional? Having the expression span multiple lines doesn't
solve it.
Daniel
if foo :bar then
...
end
Yet when I do this:
case "foo"
when bar :baz then "bur"
end
I get the following syntax error:
SyntaxError: compile error
(irb):30: parse error, unexpected tSYMBEG, expecting kDO or '{' or '('
when bar :baz then "bur"
^
Is this intentional? Having the expression span multiple lines doesn't
solve it.
Daniel