Skip to content

Commit

Permalink
add explicit home card feenkcom/gtoolkit#3766
Browse files Browse the repository at this point in the history
  • Loading branch information
girba committed May 20, 2024
1 parent e2a719f commit 604ac71
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/GToolkit-World/GtExplicitHomeCard.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Class {
#name : #GtExplicitHomeCard,
#superclass : #GtHomeCard,
#instVars : [
'stencil'
],
#category : #'GToolkit-World-Sections'
}

{ #category : #accessing }
GtExplicitHomeCard >> create [
^ stencil value
]

{ #category : #accessing }
GtExplicitHomeCard >> stencil: aBlockOrStencil [
stencil := aBlockOrStencil
]
6 changes: 6 additions & 0 deletions src/GToolkit-World/GtHomeCard.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ GtHomeCard class >> errorCard [
definingMethod: (GtPhlowDefiningMethodsCollector forContext: thisContext) collect
]

{ #category : #accessing }
GtHomeCard class >> explicit [
^ GtExplicitHomeCard new
definingMethod: (GtPhlowDefiningMethodsCollector forContext: thisContext) collect
]

{ #category : #factory }
GtHomeCard class >> job [
^ GtJobHomeCard new
Expand Down

0 comments on commit 604ac71

Please sign in to comment.