Socialmetrica/Socialmetrica.package/TweetsCollection.class/instance/newest.st

7 lines
205 B
Smalltalk
Raw Permalink Normal View History

2022-04-14 22:40:41 +00:00
accessing
newest
self messages ifNil: [ ^ nil ].
2022-04-15 05:05:17 +00:00
self messages ifEmpty: [ ^ nil ].
2022-04-14 22:40:41 +00:00
self pinned created > self messages second created
ifTrue: [ ^ self pinned ]
ifFalse: [ ^ self messages second ]