Basic objects

The Exam, Question and Custom Part Type reference shows tables that explain the dataformat for rumbas. In its most basic form, it looks like the following reference for the QuestionPartMatrixRangedDimension type which is used to specify the possible sizes for a matrix. If you are new to rumbas, you don't need to (and can't) understand yet what this type is used for. It is just used as an example to explain how to read such a table.

Reference

QuestionPartMatrixRangedDimension

fieldtypedescription
defaultjme-string or IntegerThe default size
minjme-string or IntegerThe minimal size
max"none" or jme-string or IntegerThe maximal size, if this is none, there is no limit

The tables lists three fields that has to be present in the yaml for the object. The first column is the name of the field, the second column is the datatype of the field and the third column is a description of the field.

Info

To represent this datatype in yaml we use hashes.

  • The field name is used as a key
  • The value should have the datatype as described in the second column.

An example would be the following:

default: 2
min: 1
max: 4 # could also be set to none to indicate no maximum

The order of the keys has no meaning, so we could just as well write:

max: 4
min: 1
default: 2