Skip to content

Commit

Permalink
Fix tonel v3 format for class extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed May 9, 2024
1 parent b9fa804 commit 416e996
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ DateAndTimeANSI >> printYMDOn: aStream [
]

{ #category : '*Buoy-Chronology-GS64-Extensions' }
DateAndTimeANSI classSide >> unixEpoch [
DateAndTimeANSI class >> unixEpoch [

^ self posixSeconds: 0 offset: Duration zero
]

{ #category : '*Buoy-Chronology-GS64-Extensions' }
DateAndTimeANSI classSide >> year: year month: month day: day [
DateAndTimeANSI class >> year: year month: month day: day [
"Return a DateAndTime, midnight local time"

^ self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ AbstractDictionary >> isDictionary [
]

{ #category : '*Buoy-Collections-GS64-Extensions' }
AbstractDictionary classSide >> newFromPairs: anArray [
AbstractDictionary class >> newFromPairs: anArray [
"Answer an instance of me associating (anArray at: i) to (anArray at: i+1)
for each odd i. anArray must have an even number of entries."

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ CharacterCollection >> capitalized [
]

{ #category : '*Buoy-Collections-GS64-Extensions' }
CharacterCollection classSide >> cr [
CharacterCollection class >> cr [

^ self with: Character cr
]

{ #category : '*Buoy-Collections-GS64-Extensions' }
CharacterCollection classSide >> crlf [
CharacterCollection class >> crlf [

^ self with: Character cr with: Character lf
]
Expand Down Expand Up @@ -142,7 +142,7 @@ CharacterCollection >> isAsciiString [
]

{ #category : '*Buoy-Collections-GS64-Extensions' }
CharacterCollection classSide >> lf [
CharacterCollection class >> lf [

^ self with: Character lf
]
Expand Down Expand Up @@ -185,7 +185,7 @@ CharacterCollection >> substrings [
]

{ #category : '*Buoy-Collections-GS64-Extensions' }
CharacterCollection classSide >> tab [
CharacterCollection class >> tab [

^ self with: Character tab
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Extension { #name : 'LookupError' }

{ #category : '*Buoy-Collections-GS64-Extensions' }
LookupError classSide >> signalFor: key [
LookupError class >> signalFor: key [

^ self new
key: key;
signal: ('Key <1p> not found.' expandMacrosWith: key)
]

{ #category : '*Buoy-Collections-GS64-Extensions' }
LookupError classSide >> signalFor: key in: collection [
LookupError class >> signalFor: key in: collection [

^ self new
key: key;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Extension { #name : 'OffsetError' }

{ #category : '*Buoy-Collections-GS64-Extensions' }
OffsetError classSide >> signalFor: subscript [
OffsetError class >> signalFor: subscript [

^ self signal: ('<1p> is out of bounds' expandMacrosWith: subscript)
]

{ #category : '*Buoy-Collections-GS64-Extensions' }
OffsetError classSide >> signalFor: subscript lowerBound: lowerBound upperBound: upperBound [
OffsetError class >> signalFor: subscript lowerBound: lowerBound upperBound: upperBound [

^ self signal: ('<1p> is not between <2p> and <3p>'
expandMacrosWith: subscript
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Extension { #name : 'ExitClientError' }

{ #category : '*Buoy-Exception-Handling-GS64-Extensions' }
ExitClientError classSide >> failure [
ExitClientError class >> failure [

^ self status: 1
]
Expand All @@ -13,31 +13,31 @@ ExitClientError >> isSuccess [
]

{ #category : '*Buoy-Exception-Handling-GS64-Extensions' }
ExitClientError classSide >> signalFailure [
ExitClientError class >> signalFailure [

^ self failure signal
]

{ #category : '*Buoy-Exception-Handling-GS64-Extensions' }
ExitClientError classSide >> signalFailure: aMessage [
ExitClientError class >> signalFailure: aMessage [

^ self failure signal: aMessage
]

{ #category : '*Buoy-Exception-Handling-GS64-Extensions' }
ExitClientError classSide >> signalSuccess [
ExitClientError class >> signalSuccess [

^ self success signal
]

{ #category : '*Buoy-Exception-Handling-GS64-Extensions' }
ExitClientError classSide >> signalSuccess: aMessage [
ExitClientError class >> signalSuccess: aMessage [

^ self success signal: aMessage
]

{ #category : '*Buoy-Exception-Handling-GS64-Extensions' }
ExitClientError classSide >> status: status [
ExitClientError class >> status: status [

^ self new
_resumable: true;
Expand All @@ -46,7 +46,7 @@ ExitClientError classSide >> status: status [
]

{ #category : '*Buoy-Exception-Handling-GS64-Extensions' }
ExitClientError classSide >> success [
ExitClientError class >> success [

^ self status: 0
]
10 changes: 5 additions & 5 deletions source/Buoy-Math-GS64-Base-Extensions/BinaryFloat.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BinaryFloat >> closeTo: num precision: aPrecision [
]

{ #category : '*Buoy-Math-GS64-Base-Extensions' }
BinaryFloat classSide >> infinity [
BinaryFloat class >> infinity [

^ PlusInfinity
]
Expand All @@ -41,26 +41,26 @@ BinaryFloat >> isNaN [
]

{ #category : '*Buoy-Math-GS64-Base-Extensions' }
BinaryFloat classSide >> nan [
BinaryFloat class >> nan [

^ MinusQuietNaN
]

{ #category : '*Buoy-Math-GS64-Base-Extensions' }
BinaryFloat classSide >> negativeInfinity [
BinaryFloat class >> negativeInfinity [

^ MinusInfinity
]

{ #category : '*Buoy-Math-GS64-Base-Extensions' }
BinaryFloat classSide >> readFrom: aStringOrStream [
BinaryFloat class >> readFrom: aStringOrStream [

^ aStringOrStream isString
ifTrue: [ self fromString: aStringOrStream ]
ifFalse: [ self fromStream: aStringOrStream ]
]

{ #category : '*Buoy-Math-GS64-Base-Extensions' }
BinaryFloat classSide >> zero [
BinaryFloat class >> zero [
^ 0.0
]

0 comments on commit 416e996

Please sign in to comment.