This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-03-01 09:21:05 -05:00
commit 3b4a7435c2
2 changed files with 25 additions and 1 deletions

View File

@ -9,6 +9,24 @@ LeTextSnippet >> contentFrom: markdeepDiv [
self string: sanitized. self string: sanitized.
] ]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> metadata [
^ self optionAt: 'metadata' ifAbsentPut: [ self metadataInit ]
]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> metadataInit [
^ OrderedDictionary new
at: 'id' put: self uidString;
at: 'created' put: self createTime asString;
at: 'modified' put: self latestEditTime asString;
at: 'creator' put: self createEmail asString;
at: 'modifier' put: self editEmail asString;
yourself
]
{ #category : #'*Grafoscopio-Utils-Core' } { #category : #'*Grafoscopio-Utils-Core' }
LeTextSnippet >> options [ LeTextSnippet >> options [
^ options ^ options

View File

@ -31,6 +31,12 @@ LeTextualSnippet >> markdeepCustomOpener [
^ '' ^ ''
] ]
{ #category : #'*Grafoscopio-Utils-Core' }
LeTextualSnippet >> metadata [
^ self optionAt: 'metadata' ifAbsentPut: [ self metadataInit ]
]
{ #category : #'*Grafoscopio-Utils-Core' } { #category : #'*Grafoscopio-Utils-Core' }
LeTextualSnippet >> metadataInit [ LeTextualSnippet >> metadataInit [
| surrogate | | surrogate |
@ -49,5 +55,5 @@ LeTextualSnippet >> metadataInit [
{ #category : #'*Grafoscopio-Utils-Core' } { #category : #'*Grafoscopio-Utils-Core' }
LeTextualSnippet >> options [ LeTextualSnippet >> options [
^ self metadata at: 'options' ^ options
] ]