Skip to content

Instantly share code, notes, and snippets.

@sliskiCode
Created December 15, 2017 12:00
Show Gist options
  • Save sliskiCode/d7acbc900bb8e3e96db18a4d24116fc8 to your computer and use it in GitHub Desktop.
Save sliskiCode/d7acbc900bb8e3e96db18a4d24116fc8 to your computer and use it in GitHub Desktop.
6 magic sugars that can make your Kotlin codebase happier #24
class Component : ComponentInterface {
private val navigable: Navigable = NavigableImpl()
private val searchable: Searchable = SearchableImpl()
override val onNavigationClick by ref(navigable::onNavigationClick)
override var searchText by ref(searchable::searchText)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment