I presume it was allowed, or would have been caught by the approval process. That said, Nintendo released a proper BASIC interpreter for the DS a few years ago called SmileBasic, so maybe it’s not so weird. Also, Ruby is a Japanese programming language, so that might play a factor.