bugfix: ruby doesn't understand undef, use nil

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
fix silly keyword error

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