[squeak-dev] The Trunk: Kernel-nice.460.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 12 00:19:58 UTC 2010

Nicolas Cellier uploaded a new version of Kernel to project The Trunk:

==================== Summary ====================

Name: Kernel-nice.460
Author: nice
Time: 12 June 2010, 2:19:25.578 am
UUID: f4fe2c21-dea0-4c4e-ad78-12c8151cf993
Ancestors: Kernel-nice.459

add #methodsInCategory: from Pharo (needed by newer XMLParser package)

Correct a minor typo in a comment (Pharo).

=============== Diff against Kernel-nice.459 ===============

Item was changed:
  ----- Method: Integer>>asFraction (in category 'converting') -----
+ 	"Answer a Fraction that represents the value of the receiver."
- 	"Answer a Fraction that represents value of the the receiver."
  	^Fraction numerator: self denominator: 1!

Item was added:
+ ----- Method: ClassDescription>>methodsInCategory: (in category 'accessing method dictionary') -----
+ methodsInCategory: aName 
+ 	"Answer a list of the methods of the receiver that are in category named aName"
+ 	| aColl |
+ 	aColl := Set withAll: (aName = ClassOrganizer allCategory
+ 			ifTrue: [self organization allMethodSelectors]
+ 			ifFalse: [self organization listAtCategoryNamed: aName]).
+ 	^ aColl asArray sort!

More information about the Squeak-dev mailing list