bugfix: if-else-end should be ? : for ruby

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>