Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Pass closure to builder  RSS feed

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to make a simple DSL that will control permissions.

I would like it to look something like this:



Right now the builder is attempting to build the closure, is there any way to make it pass it to the createNode method in my BuilderSupport object or it could execute it and pass the return value.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!