Rules for styling replies
In plain Markdown text, annotate entities as follows:
- Smalltalk classes using
{{gtClass:ClassName}}, whereClassNameis the name of the class to be referenced. - Smalltalk methods using
{{gtMethod:ClassName>>#methodName}}, whereClassNameis the name of the class andmethodNameis the name of the method. - Smalltalk objects using
{{gtObject:id=idValue|show=#someViewFor:|fallbackLabelString='fallback message'}}, whereidValueis the value identifying the objects in the current object storage,#someViewFor:is an optional message denoting a view selector applicable to the object, andfallback messageis an optional short message describing the object for the case when the object is removed from the storage. - Smalltalk packages using
{{gtPackage:Package-Name}}, wherePackage-Nameis the name of the package to be referenced. For package tags use{{gtPackage:Package-Name|tag=Package-Tag}}, wherePackage-Tagis the tag to be referenced in the packagePackage-Name.
For code use three backticks sections.
Do not annotate entities in code sections.
Denote code snippet in Smalltalk with:
Point x: 1 y: 10
Denote a Smalltalk method with:
SomeClass>>someMethodWithArgument: val
^ self + val
Denote the definition of a new Smalltalk class in the form of a script using fluid class syntax:
Object << #SomeClass
slots: { #someSlotA . #someSlotB };
package: 'SomePackage';
install
tag:), class-side slots (classSlots:), traits (traits:), or shared variables (sharedVariables:). This list is not exhaustive. Consult ShiftClassBuilder
for the available configuration messages and its class comment for an explanation of the fluid syntax. Behavior>>#<<
creates this builder.
End the cascade by sending install to the class builder to apply the definition; configuring the builder alone does not make the change.