私はDSLを作成して遊んでいます。私はhttp://jroller.com/rolsen/entry/building_a_dsl_in_rubyをガイドとして使用しています。 question 'Who was the first president of the USA?'
wrong 'Fred Flintstone'
wrong 'Martha Washington'
right '
Groovy 1.8 DSLの機能の1つで助けが必要です。 はthisテストケースを考えてみましょう: /**
* For odd number of elements, treat the last element as a call to a getter
*
* case a b c
* equivalent a(b).getC()
*/
void testTrailing