mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 03:48:21 +01:00
17 lines
276 B
Smalltalk
17 lines
276 B
Smalltalk
Extension { #name : #Array }
|
|
|
|
{ #category : #'*Diya' }
|
|
Array >> asDiyaStyle [
|
|
|style|
|
|
style := DiyaStyle new.
|
|
self do:[:v |
|
|
style at: v key put: v value
|
|
].
|
|
^style
|
|
]
|
|
|
|
{ #category : #'*Diya' }
|
|
Array >> asPoint [
|
|
^ (self at: 1 ifAbsent:[0]) @ (self at: 2 ifAbsent:[0])
|
|
]
|