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
1 changed files with 11 additions and 1 deletions

View File

@ -22,6 +22,16 @@ Class {
#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 }
Tiddler >> caption [
@ -37,7 +47,7 @@ Tiddler >> caption: anObject [
{ #category : #accessing }
Tiddler >> created [
^ created
^ created ifNil: [ created := DateAndTime now ]
]
{ #category : #accessing }