mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2026-10-29 15:32:57 +00:00
updates and attributes buildings and fixes
This commit is contained in:
1 parent
a856545471
commit
ca8f927304
4 files changed
+12
-4
No files matched your search
@@ -5,8 +5,8 @@ class AttributeBuilder (
|
||||
private val parametersPreset: MutableMap<String, String?> = mutableMapOf()
|
||||
) {
|
||||
|
||||
fun add(k: String, v: String? = null) = parametersPreset.set(k, v)
|
||||
infix fun String.to(value: String?) = add(this, value)
|
||||
fun add(k: String, v: Any? = null) = parametersPreset.set(k, v ?.toString())
|
||||
infix fun String.to(value: Any?) = add(this, value)
|
||||
operator fun String.unaryPlus() = add(this, null)
|
||||
|
||||
fun build(): Pair<String, String> = Pair(
|
||||
|
||||
Reference in new issue
Block a user