Last active
June 28, 2018 11:32
-
-
Save yogacp/9350aaed9956ca9635aef572c541cb05 to your computer and use it in GitHub Desktop.
Final DSL function
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
/** | |
* Create function to store movies data | |
*/ | |
fun movies(inputs: Movies.() -> Unit): Movies = Movies().apply(inputs) | |
/** | |
* Create function to store detail movies data | |
*/ | |
fun Movies.detailMovies(inputs: DetailMovies.() -> Unit) { | |
detailMovies = DetailMovies().apply(inputs) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment