Skip to content

Commit

Permalink
Returns scopes from class method
Browse files Browse the repository at this point in the history
  • Loading branch information
carolahp committed Oct 12, 2023
1 parent 0fe6d44 commit 0cab0b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/NewTools-Scopes-Browser/ScopesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ ScopesPresenter class >> menuCommandOn: aBuilder [
{ #category : 'examples' }
ScopesPresenter class >> open [
<example>
ScopesManager reset.
^ (self on: ScopesManager singleInstance) open
]

{ #category : 'layout' }
{ #category : 'specs' }
ScopesPresenter class >> title [
^ 'Scope Browser'
^ 'Custom Scopes Browser'
]

{ #category : 'announcements' }
Expand Down
5 changes: 5 additions & 0 deletions src/NewTools-Scopes/ScopesManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ ScopesManager class >> reset [
singleInstance := nil
]

{ #category : 'accessing' }
ScopesManager class >> scopes [
^ self singleInstance scopes
]

{ #category : 'accessing' }
ScopesManager class >> singleInstance [

Expand Down

0 comments on commit 0cab0b3

Please sign in to comment.