Last active
May 13, 2024 22:17
-
-
Save birojow/2583a18986e3996b22003b1b3742f5e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserDsl { | |
... | |
private val contactInfoDsl = UserContactInfoDsl() | |
private val rolesDsl = UserRolesDsl() | |
fun contactInfo(init: UserContactInfoDsl.() -> Unit) { | |
contactInfoDsl.apply(init) | |
} | |
fun roles(init: UserRolesDsl.() -> Unit) { | |
rolesDsl.apply(init) | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment