Minor fix to Ruby code example

Addresses #1026