Sha256: 8c7029706da8d0d31a470afcd808d8325686d4726de4eee9514716c3ef05d325

Contents?: true

Size: 1007 Bytes

Versions: 11

Compression:

Stored size: 1007 Bytes

Contents

Smalltalk current createPackage: 'Kernel-Transcript' properties: #{}!
Object subclass: #Transcript
	instanceVariableNames: 'textarea'
	category: 'Kernel-Transcript'!

Transcript class instanceVariableNames: 'current'!

!Transcript class methodsFor: 'instance creation'!

open
    self current open
!

new
    self shouldNotImplement
!

current
    ^current
!

register: aTranscript
	current := aTranscript
! !

!Transcript class methodsFor: 'printing'!

show: anObject
    self current show: anObject
!

cr
    self current show: String cr
!

clear
    self current clear
! !

Object subclass: #ConsoleTranscript
	instanceVariableNames: 'textarea'
	category: 'Kernel-Transcript'!

!ConsoleTranscript methodsFor: 'actions'!

open
! !

!ConsoleTranscript methodsFor: 'printing'!

clear
	"no op"
!

cr
	"no op"
!

show: anObject
	| string |
	string := anObject asString.
	<console.log(String(string))>
! !

!ConsoleTranscript class methodsFor: 'initialization'!

initialize
	Transcript register: self new
! !

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
resin-0.2.1 amber/st/Kernel-Transcript.st
resin-0.2.0 amber/st/Kernel-Transcript.st
resin-0.1.0 amber/st/Kernel-Transcript.st
resin-0.0.8 amber/st/Kernel-Transcript.st
resin-0.0.7 amber/st/Kernel-Transcript.st
resin-0.0.6 amber/st/Kernel-Transcript.st
resin-0.0.5 amber/st/Kernel-Transcript.st
resin-0.0.4 amber/st/Kernel-Transcript.st
resin-0.0.3 amber/st/Kernel-Transcript.st
resin-0.0.2 amber/st/Kernel-Transcript.st
resin-0.0.1 amber/st/Kernel-Transcript.st