Sha256: 5c8e36242fa62a90f9ad4abd2743bc799236e6c53da73812d24947a9371b4592

Contents?: true

Size: 975 Bytes

Versions: 1

Compression:

Stored size: 975 Bytes

Contents

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

!ConsoleTranscript methodsFor: 'actions'!

open
! !

!ConsoleTranscript methodsFor: 'printing'!

clear
	"no op"
!

cr
	"no op"
!

show: anObject
	<console.log(String(string._asString()))>
! !

!ConsoleTranscript class methodsFor: 'initialization'!

initialize
	Transcript register: self new
! !

Object subclass: #Transcript
	instanceVariableNames: 'textarea'
	package: 'Kernel-Transcript'!

Transcript class instanceVariableNames: 'current'!

!Transcript class methodsFor: 'instance creation'!

current
    ^current
!

new
    self shouldNotImplement
!

open
    self current open
!

register: aTranscript
	current := aTranscript
! !

!Transcript class methodsFor: 'printing'!

clear
    self current clear
!

cr
    self current show: String cr
!

show: anObject
    self current show: anObject
! !

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resin-0.4.0 amber/st/Kernel-Transcript.st