Skip to content
Sean DeNigris edited this page Aug 2, 2019 · 2 revisions

Generating Boilerplate from descriptions

For each instance-side description using a selector accessor, generate instance variables and accessors as needed.

Example Usage

Let's say you have:

MyObject>>#fieldDescription
	^ MAStringDescription new
		accessor: #field;
		yourself

Evaluating MyObject instVarBoilerplateFromDescriptions will generate on the instance-side: 1) a field instance variable, #field getter, and #field: setter, as needed.

Make Field Available in GT-Inspector

ClyTagInspectorExtensionCommand, which is available in Calypso's method pane via Extra->"Show in GT-Inspector", annotates descriptionConstructor(s) so that they appear as tabs in GT-Inspector

Clone this wiki locally