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

7 lines
205 B
Smalltalk

accessing
newest
self messages ifNil: [ ^ nil ].
self messages ifEmpty: [ ^ nil ].
self pinned created > self messages second created
ifTrue: [ ^ self pinned ]
ifFalse: [ ^ self messages second ]