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