From 217ab5dad7a9f31e6334d5b9005d4117b6f7eb23 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Thu, 28 Apr 2022 11:54:00 -0500 Subject: [PATCH] Repackaging general utilities for working with Markup files. --- .../Grafoscopio-Utils/MarkupFile.class.st | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 repository/Grafoscopio-Utils/MarkupFile.class.st diff --git a/repository/Grafoscopio-Utils/MarkupFile.class.st b/repository/Grafoscopio-Utils/MarkupFile.class.st deleted file mode 100644 index 7e5019c..0000000 --- a/repository/Grafoscopio-Utils/MarkupFile.class.st +++ /dev/null @@ -1,23 +0,0 @@ -" -I model common operations made with several markup files. -" -Class { - #name : #MarkupFile, - #superclass : #Object, - #instVars : [ - 'file' - ], - #category : #'Grafoscopio-Utils-Core' -} - -{ #category : #persistence } -MarkupFile class >> exportAsFileOn: aFileReferenceOrFileName containing: text [ - | file | - file := aFileReferenceOrFileName asFileReference. - file ensureDelete. - file exists ifFalse: [ file ensureCreateFile ]. - file writeStreamDo: [ :stream | - stream nextPutAll: text withUnixLineEndings]. - self inform: 'Exported as: ', String cr, file fullName. - ^ file -]