Erlang like pattern matching function definitions for ruby