Oops! My apologies to everyone: I seem to have double-posted this. The
Internet hung when I sent it, so I thought that it wasn't sent.

Changing it to button('test') { ... } works, but is it a Ruby problem?
I tried it in regular Ruby and it seemed to work fine...

Sincerely,
Joshua Choi

On Thu, Sep 18, 2008 at 2:45 PM, Bluebie, Jenna
<[EMAIL PROTECTED]> wrote:
> Change it to button('test') {... I think ruby gets confused otherwise and
> tries to treat the { as the beginning of a hash.
>
>
> On 19/09/2008, at 6:37 AM, Joshua Choi wrote:
>
>> The following code does not work:
>>
>>        Shoes.app do
>>                stack do
>>                        button 'Test' {
>>                                alert "Boo"
>>                        }
>>                end
>>        end
>>
>> The error is from lib/shoes.rb line 359:
>>  compile error
>>  test.rb:4: syntax error, unexpected '{', expecting kEND
>>  test.rb:6: syntax error, unexpected '}', expecting kEND
>>
>> A similar error occurs with the following:
>>
>>        Shoes.app do
>>                stack {
>>                        button 'Test' {
>>                                alert "Boo"
>>                        }
>>                }
>>        end
>>
>> I have Shoes r970 Mac OS X.
>>
>> Sincerely,
>> Joshua Choi
>
>

Reply via email to