Improving format conversions.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-06-05 13:32:51 -05:00
parent 963cfdbe16
commit e8c73c7563

View File

@ -22,6 +22,16 @@ Class {
#category : #'TiddlyWiki-Model' #category : #'TiddlyWiki-Model'
} }
{ #category : #accessing }
Tiddler >> asDictionary [
^ Dictionary new
at: 'title' put: self title;
at: 'text' put: self text;
at: 'created' put: self created asString;
at: 'tags' put: self tags;
yourself.
]
{ #category : #accessing } { #category : #accessing }
Tiddler >> caption [ Tiddler >> caption [
@ -37,7 +47,7 @@ Tiddler >> caption: anObject [
{ #category : #accessing } { #category : #accessing }
Tiddler >> created [ Tiddler >> created [
^ created ^ created ifNil: [ created := DateAndTime now ]
] ]
{ #category : #accessing } { #category : #accessing }