Ruby implementation: fix typo