You can set and get properties
from the server using normal
Ruby hash notation. For example, to set the
in an Excel chart, you might write
excel = WIN32OLE.new("excel.application")
excelchart = excel.Charts.Add()
excelchart['Rotation'] = 45
An OLE object's parameters are automatically set up as attributes of
object. This means that you can set a parameter by
assigning to an object attribute.
excelchart.rotation = 45
r = excelchart.rotation
Because these attributes are conventional Ruby accessor
methods, attribute names cannot start with a capital letter.
In this example, we have to use