From ef469a9b8565d0cda7db582d87816f8158f6309f Mon Sep 17 00:00:00 2001 From: Offray Date: Wed, 21 Sep 2022 12:40:05 -0500 Subject: [PATCH] Moving from GrafoscopioUtils. --- src/MiniDocs/String.extension.st | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/MiniDocs/String.extension.st diff --git a/src/MiniDocs/String.extension.st b/src/MiniDocs/String.extension.st new file mode 100644 index 0000000..021c838 --- /dev/null +++ b/src/MiniDocs/String.extension.st @@ -0,0 +1,8 @@ +Extension { #name : #String } + +{ #category : #'*MiniDocs' } +String >> asDashedLowercase [ + "I convert phrases like 'This is a phrase' into 'this-is-a-phrase'." + + ^ '-' join: (self substrings collect: [:each | each asLowercase ]) +]