shoes/shoes4 — pull request #168 by PragTob (2012-12-12 23:17:55+00:00)
Title: Refactoring dialog

My love for refactoring has struck once again.

Huge Refactoring of Shoes::Alert and Shoes::Confirm into Shoes::Dialog with appropriate methods.

Now there is Dialog#alert and Dialog#confirm - which takes the logic out of the DSL part and also makes code reuse easier. Both for specs and implementation.
I also enhanced the dsl to also respond to confirm? and not just confirm but we should probably talk about that.

So what do you think? We won't have separate Shoes::Alert and Shoes::Confirm objects anymore but imo we don't need them and they were kind of clumsy to start with. Code reuse is also way better this way. I think it's better this way but was looking for some feedback.

On a different note I **extended** the DSL with `confirm?` - since it always seemed a bit odd to my ruby mind that `confirm` is kind of a query method but doesn't have a question tag - what do you think? I'd wanna keep both `confirm` and `confirm?`