Object property assignment

Property assignment is similar to variable assignment in Gosu.

Syntax

<object-property-path> = <expression>

Some properties are write-protected. Consider the following Gosu code:

Activity.UpdateTime = "Feb 17, 2017"

That code causes the following error:

Property, UpdateTime, of class Activity, is not writable

Other properties are read-protected but can be written.

Example

myObject.Prop = "Test Value" 
var startTime = myObject.UpdateTime