Skip to content

Commit

Permalink
add dummy method [feenkcom/gtoolkit#3892]
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajKubelka committed Jul 17, 2024
1 parent 56d1960 commit 0f1e095
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/GToolkit-Pharo-Coder-Examples/GtPharoDummyOneObject.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,36 @@ GtPharoDummyOneObject >> instAReceiver [
^ instA raisedTo: a
]

{ #category : #accessing }
GtPharoDummyOneObject >> longMethod [
| aValue |
aValue := 1.
aValue := aValue + 1.
aValue := aValue + 2.
aValue := aValue + 3.
aValue := self togetherWith: aValue.
#(5 6)
inject: aValue
into: [ :aSum :anotherValue |
aSum + anotherValue ].
aValue := aValue + 7.
aValue := aValue + 8.
aValue := aValue + 9.
aValue := aValue + 10.
aValue := aValue + 11.
aValue := aValue + 12.
aValue := aValue + 13.
aValue := aValue + 14.
aValue := aValue + 15.
aValue := aValue + 16.
aValue := aValue + 17.
aValue := aValue + 18.
aValue := aValue + 19.
aValue := aValue + 20.
aValue := aValue + 21.
^ aValue
]

{ #category : #accessing }
GtPharoDummyOneObject >> number [
^ self one
Expand Down Expand Up @@ -159,6 +189,13 @@ GtPharoDummyOneObject >> three [
^ self two + self one
]

{ #category : #accessing }
GtPharoDummyOneObject >> togetherWith: aValue [
| anotherValue |
anotherValue := aValue + 4.
^ anotherValue
]

{ #category : #accessing }
GtPharoDummyOneObject >> two [
^ self one + self one
Expand Down

0 comments on commit 0f1e095

Please sign in to comment.