14 lines
392 B
Smalltalk
14 lines
392 B
Smalltalk
|
Extension { #name : #OrderedDictionary }
|
||
|
|
||
|
{ #category : #'*TiddlyWiki' }
|
||
|
OrderedDictionary >> asTiddler [
|
||
|
| tiddlerFields response |
|
||
|
response := Tiddler new.
|
||
|
tiddlerFields := response class slotNames copyWithoutAll: #('wiki' 'customFields').
|
||
|
self keysAndValuesDo: [ :key :value |
|
||
|
(tiddlerFields includes: key)
|
||
|
ifTrue: [ response writeSlotNamed: key value: value ]
|
||
|
].
|
||
|
^ response
|
||
|
]
|